Skip to content

Commit 6467b39

Browse files
Merge pull request #2460 from citelao/patch-2
[A11y] Add images to HighContrastAdjustment page
2 parents a81d3f5 + ff5c3fa commit 6467b39

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

8.56 KB
Loading
8.55 KB
Loading

windows.ui.xaml/uielement_highcontrastadjustment.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ The value of the property is inherited. When set to **Application** the adjustm
2222
When set to **Auto**, the framework automatically applies the following adjustments to XAML's text elements while a high contrast theme is enabled:
2323
* The foreground color on text is ignored. The text is colored using either the system’s high contrast text color or the disabled color when in a parent [Control](../windows.ui.xaml.controls/control.md) where [IsEnabled](../windows.ui.xaml.controls/control_isenabled.md) = "False".
2424
* An opaque rectangle is rendered immediately behind the text to enforce a high contrast ratio.
25-
* Non-zero values for [Opacity](uielement_opacity.md) are ignored. The element and its children will appear as if they had an opacity of 1.0.
25+
* Non-zero values for [Opacity](uielement_opacity.md) are ignored. The element and its children will appear as if they had an opacity of 1.0.
26+
27+
The following images show the difference between **Auto** (the default **Application** value) and **None**:
28+
29+
:::image type="content" source="images/HighContrastAdjustment_auto.png" alt-text="Example of buttons with HighContrastAdjustment set to auto.":::
30+
:::image type="content" source="images/HighContrastAdjustment_none.png" alt-text="Example of buttons with HighContrastAdjustment set to none.":::
2631

2732
It is possible to set HighContrastAdjustment = None on a UIElement and then have HighContrastAdjustment = Auto on one of its descendants. However, the framework does not guarantee that the descendent will be fully opaque if an opacity is applied on any of its ancestors.
2833

0 commit comments

Comments
 (0)