Skip to content

Commit a447fec

Browse files
committed
Merged PR 21277: public/private sync
1 parent 77e396a commit a447fec

6 files changed

Lines changed: 23 additions & 4 deletions

File tree

windows.security.authorization.appcapabilityaccess/appcapability_displaymessage.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ The purpose of why the capability is being accessed.
1717
The stored display message as a string property.
1818

1919
## -remarks
20-
The display message, if specified, appears in the system tray and settings app under **Privacy & security > App permissions** pages while the capability is in use. Display messages should be provided before the capability is accessed and should continue to be provided until after the apps terminate access to the capability.
20+
21+
The display message, if specified, appears in the system tray and settings app under **Privacy & security > App permissions** pages while the capability is in use. Display messages should be provided before the capability is accessed and should continue to be provided until the app terminates access to the capability.
2122

2223
## -see-also
2324

windows.ui.core/corewindow_getkeystate_1676715341.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,18 @@ The virtual key for which state is returned.
2020
The flags indicating the current state of the supplied virtual key when the input event fired.
2121

2222
> [!NOTE]
23-
> All keys support the **Locked** state (not just the standard Caps Lock and Num Lock keys).
23+
> For WinUI 3 apps, this method returns null. Use [**Microsoft.UI.Input.InputKeyboardSource.GetKeyStateForCurrentThread**](/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.getkeystateforcurrentthread) instead.
24+
>
25+
> See [Windows Runtime APIs not supported in desktop apps](/windows/apps/desktop/modernize/desktop-to-uwp-supported-api).
2426
2527
## -remarks
2628

29+
All keys support the **Locked** state (not just the standard Caps Lock and Num Lock keys).
30+
2731
## -examples
2832

2933
## -see-also
30-
[CoreVirtualKeyStates](corevirtualkeystates.md), [GetAsyncKeyState](corewindow_getasynckeystate_1621551046.md)
34+
35+
* [CoreVirtualKeyStates](corevirtualkeystates.md)
36+
* [GetAsyncKeyState](corewindow_getasynckeystate_1621551046.md)
37+
* [InputKeyboardSource.GetKeyStateForCurrentThread](/windows/windows-app-sdk/api/winrt/microsoft.ui.input.inputkeyboardsource.getkeystateforcurrentthread)

windows.ui.xaml.input/focusmanager_getfocusedelement_1183614552.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ The object that has focus. Typically, this is a [Control](../windows.ui.xaml.con
2222

2323
## -remarks
2424

25+
> [!WARNING]
26+
> For WinUI 3 apps, this method always returns `null` as it relies on CoreWindow APIs not supported by WinUI 3.
27+
>
28+
> Instead, use the [FocusManager.GetFocusedElement(XamlRoot)](./windows.ui.xaml.input.focusmanager.getfocusedelement#windows-ui-xaml-input-focusmanager-getfocusedelement(windows-ui-xaml-xamlroot))
29+
> overload, where `XamlRoot` can be retrieved any loaded UIElement through the [XamlRoot](/uwp/api/windows.ui.xaml.uielement.xamlroot) property.
30+
2531
## -examples
2632

2733
## -see-also
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)