Skip to content

Commit 8be0b0f

Browse files
authored
add images to highcontarastadjustment
1 parent 4cbb408 commit 8be0b0f

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+
For example, compare **Auto** (which is the default **Application** value) to **None**:
28+
29+
<img src="images/HighContrastAdjustment_auto.png" alt="Example buttons with HighContrastAdjustment auto" />
30+
<img src="images/HighContrastAdjustment_none.png" alt="Example buttons with HighContrastAdjustment 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)