Skip to content

Commit

Permalink
Merge pull request microsoft#381 from singhashish-wpf/1333465
Browse files Browse the repository at this point in the history
Fixing Bug: 1333465 (microsoft#380) in Samples used by Accessibility team for testing.
  • Loading branch information
singhashish-wpf authored Jun 8, 2021
2 parents fb62cf4 + d0c3cfc commit 88b1ddd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sample Applications/EditingExaminerDemo/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<FlowDocument
ColumnWidth="400" AutomationProperties.Name="Help Text"
IsOptimalParagraphEnabled="True" IsHyphenationEnabled="True">
<Section FontSize="12">
<Section FontSize="12" Style="{StaticResource HelpSectionTextHighContrastStyle}">
<Paragraph FontSize="22" FontWeight="Bold">Introducing Editing Examiner</Paragraph>

<Paragraph>
Expand Down
7 changes: 7 additions & 0 deletions Sample Applications/EditingExaminerDemo/Styles.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,11 @@
</Setter.Value>
</Setter>
</Style>
<Style x:Key="HelpSectionTextHighContrastStyle" TargetType="Section">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=(SystemParameters.HighContrast)}" Value="true" >
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}" />
</DataTrigger>
</Style.Triggers>
</Style>
</ResourceDictionary>

0 comments on commit 88b1ddd

Please sign in to comment.