diff --git a/hub/apps/design/accessibility/custom-automation-peers.md b/hub/apps/design/accessibility/custom-automation-peers.md index 6cf6d02295..0058fcbe0d 100644 --- a/hub/apps/design/accessibility/custom-automation-peers.md +++ b/hub/apps/design/accessibility/custom-automation-peers.md @@ -97,7 +97,7 @@ All classes that derive from [**UIElement**](/windows/windows-app-sdk/api/winrt/ If you are writing a custom control and supplying a custom peer, override [**OnCreateAutomationPeer**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.uielement.oncreateautomationpeer) so it returns a new instance of your peer type. The peer must derive directly or indirectly from [**AutomationPeer**](/windows/windows-app-sdk/api/winrt/microsoft.ui.xaml.Automation.Peers.AutomationPeer). -For example, the following code declares that custom control `NumericUpDown` uses `NumericUpDownPeer` for UI Automation. +For example, the following code declares that custom control `NumericUpDown` uses `NumericUpDownAutomationPeer` for UI Automation. ```csharp using Microsoft.UI.Xaml.Automation.Peers; @@ -200,7 +200,7 @@ End Sub import "NumericUpDown.idl"; namespace MyNamespace { - runtimeclass NumericUpDownAutomationPeer : Microsoft.UI.Xaml.Automation.Peers.AutomationPeer + runtimeclass NumericUpDownAutomationPeer : Microsoft.UI.Xaml.Automation.Peers.RangeBaseAutomationPeer { NumericUpDownAutomationPeer(NumericUpDown owner); Int32 MyProperty; diff --git a/hub/apps/design/accessibility/high-contrast-themes.md b/hub/apps/design/accessibility/high-contrast-themes.md index fc634013a7..ebf1d32cf4 100644 --- a/hub/apps/design/accessibility/high-contrast-themes.md +++ b/hub/apps/design/accessibility/high-contrast-themes.md @@ -83,12 +83,12 @@ The following table lists the contrast-theme **SystemColor** resources and recom |---------|---------| |:::image source="images/sys-color/aquatic-color-window.png" alt-text="Color swatch of SystemColorWindowColor used for background of pages, panes, popups, and windows.":::| **SystemColorWindowColor**
Background of pages, panes, popups, and windows.

Pair with **SystemColorWindowTextColor** | |:::image source="images/sys-color/aquatic-color-windowtext.png" alt-text="Color swatch of SystemColorWindowTextColor used for headings, body copy, lists, placeholder text, app and window borders, any UI that can't be interacted with."::: | **SystemColorWindowTextColor**
Headings, body copy, lists, placeholder text, app and window borders, any UI that can't be interacted with.

Pair with **SystemColorWindowColor** | -|:::image source="images/sys-color/aquatic-color-hotlight.png" alt-text="Color swatch of SystemColorWindowTextColor used for hyperlinks.":::| **SystemColorHotlightColor**
Hyperlinks.

Pair with **SystemColorWindowColor** | -|:::image source="images/sys-color/aquatic-color-graytext.png" alt-text="Color swatch of SystemColorWindowTextColor used for inactive or disabled UI.":::| **SystemColorGrayTextColor**
Inactive or disabled UI.

Pair with **SystemColorWindowColor** | -|:::image source="images/sys-color/aquatic-color-highlighttext.png" alt-text="Color swatch of SystemColorWindowTextColor used for foreground color of text or UI that is selected, interacted with (hover, pressed), or in progress.":::| **SystemColorHighlightTextColor**
Foreground color of text or UI that is selected, interacted with (hover, pressed), or in progress.

Pair with **SystemColorHighlightColor** | -|:::image source="images/sys-color/aquatic-color-highlight.png" alt-text="Color swatch of SystemColorWindowTextColor used for background or accent color of UI that is selected, interacted with (hover, pressed), or in progress.":::| **SystemColorHighlightColor**
Background or accent color of UI that is selected, interacted with (hover, pressed), or in progress.

Pair with **SystemColorHighlightTextColor** | -|:::image source="images/sys-color/aquatic-color-btntext.png" alt-text="Color swatch of SystemColorWindowTextColor used for foreground color of buttons and any UI that can be interacted with.":::| **SystemColorButtonTextColor**
Foreground color of buttons and any UI that can be interacted with.

Pair with **SystemColorButtonFaceColor** | -|:::image source="images/sys-color/aquatic-color-3dface.png" alt-text="Color swatch of SystemColorWindowTextColor used for background color of buttons and any UI that can be interacted with.":::| **SystemColorButtonFaceColor**
Background color of buttons and any UI that can be interacted with.

Pair with **SystemColorButtonTextColor** | +|:::image source="images/sys-color/aquatic-color-hotlight.png" alt-text="Color swatch of SystemColorHotlightColor used for hyperlinks.":::| **SystemColorHotlightColor**
Hyperlinks.

Pair with **SystemColorWindowColor** | +|:::image source="images/sys-color/aquatic-color-graytext.png" alt-text="Color swatch of SystemColorGrayTextColor used for inactive or disabled UI.":::| **SystemColorGrayTextColor**
Inactive or disabled UI.

Pair with **SystemColorWindowColor** | +|:::image source="images/sys-color/aquatic-color-highlighttext.png" alt-text="Color swatch of SystemColorHighlightTextColor used for foreground color of text or UI that is selected, interacted with (hover, pressed), or in progress.":::| **SystemColorHighlightTextColor**
Foreground color of text or UI that is selected, interacted with (hover, pressed), or in progress.

Pair with **SystemColorHighlightColor** | +|:::image source="images/sys-color/aquatic-color-highlight.png" alt-text="Color swatch of SystemColorHighlightColor used for background or accent color of UI that is selected, interacted with (hover, pressed), or in progress.":::| **SystemColorHighlightColor**
Background or accent color of UI that is selected, interacted with (hover, pressed), or in progress.

Pair with **SystemColorHighlightTextColor** | +|:::image source="images/sys-color/aquatic-color-btntext.png" alt-text="Color swatch of SystemColorButtonTextColor used for foreground color of buttons and any UI that can be interacted with.":::| **SystemColorButtonTextColor**
Foreground color of buttons and any UI that can be interacted with.

Pair with **SystemColorButtonFaceColor** | +|:::image source="images/sys-color/aquatic-color-3dface.png" alt-text="Color swatch of SystemColorButtonFaceColor used for background color of buttons and any UI that can be interacted with.":::| **SystemColorButtonFaceColor**
Background color of buttons and any UI that can be interacted with.

Pair with **SystemColorButtonTextColor** | The next table shows practical examples using **SystemColorWindowColor** as the background baseline. diff --git a/hub/apps/design/accessibility/system-button-narration.md b/hub/apps/design/accessibility/system-button-narration.md index 8a1009278e..06d380ee32 100644 --- a/hub/apps/design/accessibility/system-button-narration.md +++ b/hub/apps/design/accessibility/system-button-narration.md @@ -67,7 +67,7 @@ It is common for more than one of the supported events to fire when the Fn butto 3. This third snippet includes the corresponding event handler delegates for each event supported by the [SystemButtonEventController](/uwp/api/windows.ui.input.systembuttoneventcontroller) object. - Each event handler announces the event that has occurred. In addition, the FunctionLockIndicatorChanged handler also controls whether the app is in "Learning" mode (`_isLearningMode` = true), which prevents the event from bubbling to other handlers and lets the user explore keyboard features without actually performing the action. + Each event handler announces the event that has occurred. In addition, the SystemFunctionLockIndicatorChanged handler also controls whether the app is in "Learning" mode (`_isLearningMode` = true), which prevents the event from bubbling to other handlers and lets the user explore keyboard features without actually performing the action. ```cppwinrt void SetupSystemButtonEventController() @@ -80,8 +80,8 @@ It is common for more than one of the supported events to fire when the Fn butto _controller = winrt::SystemButtonEventController::CreateForDispatcherQueue(_queue); // Add Event Handler for each different event - _fnKeyDownToken = _controller->FunctionButtonPressed( - [](const winrt::SystemButtonEventController& /*sender*/, const winrt:: FunctionButtonEventArgs& args) + _fnKeyDownToken = _controller->SystemFunctionButtonPressed( + [](const winrt::SystemButtonEventController& /*sender*/, const winrt:: SystemFunctionButtonEventArgs& args) { // Mock function to read the sentence "Fn button is pressed" PronounceFunctionButtonPressedMock(); @@ -90,8 +90,8 @@ It is common for more than one of the supported events to fire when the Fn butto args.Handled(true); }); - _fnKeyUpToken = _controller->FunctionButtonReleased( - [](const winrt::SystemButtonEventController& /*sender*/, const winrt:: FunctionButtonEventArgs& args) + _fnKeyUpToken = _controller->SystemFunctionButtonReleased( + [](const winrt::SystemButtonEventController& /*sender*/, const winrt:: SystemFunctionButtonEventArgs& args) { // Mock function to read the sentence "Fn button is up" PronounceFunctionButtonReleasedMock(); @@ -100,8 +100,8 @@ It is common for more than one of the supported events to fire when the Fn butto args.Handled(true); }); - _fnLockToken = _controller->FunctionLockChanged( - [](const winrt::SystemButtonEventController& /*sender*/, const winrt:: FunctionLockChangedEventArgs& args) + _fnLockToken = _controller->SystemFunctionLockChanged( + [](const winrt::SystemButtonEventController& /*sender*/, const winrt:: SystemFunctionLockChangedEventArgs& args) { // Mock function to read the sentence "Fn shift is locked/unlocked" PronounceFunctionLockMock(args.IsLocked()); @@ -110,8 +110,8 @@ It is common for more than one of the supported events to fire when the Fn butto args.Handled(true); }); - _fnLockIndicatorToken = _controller->FunctionLockIndicatorChanged( - [](const winrt::SystemButtonEventController& /*sender*/, const winrt:: FunctionLockIndicatorChangedEventArgs& args) + _fnLockIndicatorToken = _controller->SystemFunctionLockIndicatorChanged( + [](const winrt::SystemButtonEventController& /*sender*/, const winrt:: SystemFunctionLockIndicatorChangedEventArgs& args) { // Mock function to read the sentence "Fn lock indicator is on/off" PronounceFunctionLockIndicatorMock(args.IsIndicatorOn()); diff --git a/hub/apps/develop/devices-and-sensors.md b/hub/apps/develop/devices-and-sensors.md index fef553186f..2bbc4bb4b2 100644 --- a/hub/apps/develop/devices-and-sensors.md +++ b/hub/apps/develop/devices-and-sensors.md @@ -15,7 +15,7 @@ This article provides an index of development features that are related to scena ## Windows OS features -Windows 10 and later OS releases provide a wide variety of APIs related to data and files scenarios for apps. These features are available via a combination of WinRT and Win32 (C++ and COM) APIs provided by the [Windows SDK](https://developer.microsoft.com/windows/downloads/windows-sdk). +Windows 10 and later OS releases provide a wide variety of APIs related to devices and sensors scenarios for apps. These features are available via a combination of WinRT and Win32 (C++ and COM) APIs provided by the [Windows SDK](https://developer.microsoft.com/windows/downloads/windows-sdk). #### WinRT APIs diff --git a/hub/apps/winui/winui3/xaml-templated-controls-winui-3.md b/hub/apps/winui/winui3/xaml-templated-controls-winui-3.md index be11bccac9..310e57106c 100644 --- a/hub/apps/winui/winui3/xaml-templated-controls-winui-3.md +++ b/hub/apps/winui/winui3/xaml-templated-controls-winui-3.md @@ -87,7 +87,7 @@ public string Label Next, declare the dependency property and register it with the system by calling [DependencyProperty.Register](/uwp/api/windows.ui.xaml.dependencyproperty.register). This method specifies the name and type of our **Label** property, the type of the owner of the property, our **BgLabelControl** class, and the default value for the property. ```csharp -DependencyProperty LabelProperty = DependencyProperty.Register( +public static readonly DependencyProperty LabelProperty = DependencyProperty.Register( nameof(Label), typeof(string), typeof(BgLabelControl),