Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hub/apps/design/accessibility/custom-automation-peers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
12 changes: 6 additions & 6 deletions hub/apps/design/accessibility/high-contrast-themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**</br>Background of pages, panes, popups, and windows.</br></br>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**</br>Headings, body copy, lists, placeholder text, app and window borders, any UI that can't be interacted with.</br></br>Pair with **SystemColorWindowColor** |
|:::image source="images/sys-color/aquatic-color-hotlight.png" alt-text="Color swatch of SystemColorWindowTextColor used for hyperlinks.":::| **SystemColorHotlightColor**</br>Hyperlinks.</br></br>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**</br>Inactive or disabled UI.</br></br>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**</br>Foreground color of text or UI that is selected, interacted with (hover, pressed), or in progress.</br></br>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**</br>Background or accent color of UI that is selected, interacted with (hover, pressed), or in progress.</br></br>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**</br>Foreground color of buttons and any UI that can be interacted with.</br></br>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**</br>Background color of buttons and any UI that can be interacted with.</br></br>Pair with **SystemColorButtonTextColor** |
|:::image source="images/sys-color/aquatic-color-hotlight.png" alt-text="Color swatch of SystemColorHotlightColor used for hyperlinks.":::| **SystemColorHotlightColor**</br>Hyperlinks.</br></br>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**</br>Inactive or disabled UI.</br></br>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**</br>Foreground color of text or UI that is selected, interacted with (hover, pressed), or in progress.</br></br>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**</br>Background or accent color of UI that is selected, interacted with (hover, pressed), or in progress.</br></br>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**</br>Foreground color of buttons and any UI that can be interacted with.</br></br>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**</br>Background color of buttons and any UI that can be interacted with.</br></br>Pair with **SystemColorButtonTextColor** |

The next table shows practical examples using **SystemColorWindowColor** as the background baseline.

Expand Down
18 changes: 9 additions & 9 deletions hub/apps/design/accessibility/system-button-narration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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());
Expand All @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion hub/apps/develop/devices-and-sensors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion hub/apps/winui/winui3/xaml-templated-controls-winui-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down