Skip to content

Commit 252296c

Browse files
authored
docs: develop-input (#6522)
Modernize documentation by updating legacy references. Batch: develop-input Files changed: 4 Proposals applied: 11
1 parent 900f994 commit 252296c

4 files changed

Lines changed: 36 additions & 53 deletions

File tree

hub/apps/develop/input/guidelines-for-targeting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ All interactive UI elements in your Windows application must be large enough for
1616

1717
Supporting touch input (and the relatively imprecise nature of the touch contact area) requires further optimization with respect to target size and control layout as the larger, more complex set of input data reported by the touch digitizer is used to determine the user's intended (or most likely) target.
1818

19-
All UWP controls have been designed with default touch target sizes and layouts that enable you to build visually balanced and appealing apps that are comfortable, easy to use, and inspire confidence.
19+
All WinUI controls have been designed with default touch target sizes and layouts that enable you to build visually balanced and appealing apps that are comfortable, easy to use, and inspire confidence.
2020

2121
In this topic, we describe these default behaviors so you can design your app for maximum usability using both platform controls and custom controls (should your app require them).
2222

hub/apps/develop/input/index.md

Lines changed: 33 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
description: Learn how to customize your Universal Windows Platform (UWP) app for interaction with specific types of inputs including pen, Surface dial, and speech.
2+
description: Learn how to customize your WinUI for interaction with specific types of inputs including pen and speech.
33
title: Input and interactions
4-
keywords: app inputs, customize UWP application
4+
keywords: app inputs, customize WinUI application
55
label: Input and interactions
66
template: detail.hbs
77
ms.date: 09/24/2020
@@ -12,9 +12,9 @@ ms.localizationpriority: medium
1212

1313
# Input and interactions
1414

15-
UWP apps automatically handle a wide variety of inputs and run on a variety of devices—there’s nothing extra you need to do to enable touch input, for example. But there are times when you might want to optimize your app for certain types of input or devices. For example, if you’re creating a painting app, you might want to customize the way you handle pen input.
15+
WinUI apps automatically handle a wide variety of inputs and run on a variety of devices—there’s nothing extra you need to do to enable touch input, for example. But there are times when you might want to optimize your app for certain types of input or devices. For example, if you’re creating a painting app, you might want to customize the way you handle pen input.
1616

17-
The design and coding instructions in this section help you customize your UWP app for specific types of inputs.
17+
The design and coding instructions in this section help you customize your WinUI app for specific types of inputs.
1818

1919
:::row:::
2020
:::column:::
@@ -67,22 +67,11 @@ See our <b>[Input primer](../../design/input/index.md)</b> to familiarize yourse
6767

6868
<!-- <div class="side-by-side">
6969
<div class="side-by-side-content">
70-
<p>
71-
<b>[Surface Dial](../../design/input/windows-wheel-interactions.md)</b><br/>
72-
Learn how to integrate this brand new category of input device into your Windows apps.</br>
73-
This device is intended as a secondary, multi-modal input device that complements or modifies input from a primary device.
74-
</p>
7570
</div>
7671
</div>
7772
7873
<div class="side-by-side">
7974
<div class="side-by-side-content">
80-
<div class="side-by-side-content-left">
81-
<p>
82-
<b>[Cortana](../../design/input/cortana-interactions.md)</b><br/>
83-
Extend the basic functionality of Cortana with voice commands that launch and execute a single action in an external application.
84-
</p>
85-
</div>
8675
<div class="side-by-side-content-right">
8776
<p>
8877
<b>[Speech](../../design/input/speech-interactions.md)</b><br/>
@@ -103,41 +92,35 @@ Optimize your UWP app for pen input to provide both standard pointer device func
10392
<div class="side-by-side-content-right">
10493
<p>
10594
<b>[Keyboard](../../design/input/keyboard-interactions.md)</b><br/>
106-
Keyboard input is an important part of the overall user interaction experience for apps. The keyboard is indispensable to people with certain disabilities or users who just consider it a more efficient way to interact with an app.
107-
</p>
108-
</div>
109-
</div>
110-
</div>
111-
11295
<div class="side-by-side">
11396
<div class="side-by-side-content">
11497
<div class="side-by-side-content-left">
11598
<p>
116-
<b>[Touch](../../design/input/touch-interactions.md)</b><br/>
117-
UWP includes a number of different mechanisms for handling touch input, all of which enable you to create an immersive experience that your users can explore with confidence.
99+
<b>[Pen](../../design/input/pen-and-stylus-interactions.md)</b><br/>
100+
Optimize your WinUI app for pen input to provide both standard pointer device functionality and the best Windows Ink experience for your users.
118101
</p>
119102
</div>
120103
<div class="side-by-side-content-right">
121104
<p>
122-
<b>[Touchpad](../../design/input/touchpad-interactions.md)</b><br/>
123-
A touchpad combines both indirect multi-touch input with the precision input of a pointing device, such as a mouse. This combination makes the touchpad suited to both a touch-optimized UI and the smaller targets of productivity apps.
105+
<b>[Keyboard](../../design/input/keyboard-interactions.md)</b><br/>
106+
Keyboard input is an important part of the overall user interaction experience for apps. The keyboard is indispensable to people with certain disabilities or users who just consider it a more efficient way to interact with an app.
124107
</p>
125108
</div>
126109
</div>
127110
</div>
128-
111+
<b>[Touchpad](../../design/input/touchpad-interactions.md)</b><br/>
129112
<div class="side-by-side">
130113
<div class="side-by-side-content">
131114
<div class="side-by-side-content-left">
132115
<p>
133-
<b>[Mouse](../../design/input/mouse-interactions.md)</b><br/>
134-
Mouse input is best suited for user interactions that require precision when pointing and clicking. This inherent precision is naturally supported by the UI of Windows, which is optimized for the imprecise nature of touch.
116+
<b>[Touch](../../design/input/touch-interactions.md)</b><br/>
117+
WinUI includes a number of different mechanisms for handling touch input, all of which enable you to create an immersive experience that your users can explore with confidence.
135118
</p>
136119
</div>
137120
<div class="side-by-side-content-right">
138121
<p>
139-
<b>[Gamepad and remote control](../../design/input/gamepad-and-remote-interactions.md)</b><br/>
140-
UWP apps now support gamepad and remote control input. Gamepads and remote controls are the primary input devices for Xbox and TV experiences.
122+
<b>[Touchpad](../../design/input/touchpad-interactions.md)</b><br/>
123+
A touchpad combines both indirect multi-touch input with the precision input of a pointing device, such as a mouse. This combination makes the touchpad suited to both a touch-optimized UI and the smaller targets of productivity apps.
141124
</p>
142125
</div>
143126
</div>
@@ -147,7 +130,7 @@ UWP apps now support gamepad and remote control input. Gamepads and remote contr
147130
<div class="side-by-side-content">
148131
<p>
149132
<b>[Multiple inputs](../../design/input/multiple-input-design-guidelines.md)</b><br/>
150-
To accommodate as many users and devices as possible, we recommend that you design your apps to work with as many input types as possible (gesture, speech, touch, touchpad, mouse, and keyboard). Doing so will maximize flexibility, usability, and accessibility.
133+
To accommodate as many users and devices as possible, we recommend that you design your apps to work with as many input types as possible (speech, touch, touchpad, mouse, and keyboard). Doing so will maximize flexibility, usability, and accessibility.
151134
</p>
152135
</div>
153136
</div>
@@ -173,7 +156,7 @@ Receive, process, and manage input data from pointing devices, such as touch, mo
173156
<div class="side-by-side-content">
174157
<div class="side-by-side-content-left">
175158
<p><b>[Custom text input](../../design/input/custom-text-input.md)</b><br/>
176-
The core text APIs in the Windows.UI.Text.Core namespace enable a UWP app to receive text input from any text service supported on Windows devices. This enables the app to receive text in any language and from any input type, like keyboard, speech, or pen.
159+
The core text APIs in the Windows.UI.Text.Core namespace enable a WinUI app to receive text input from any text service supported on Windows devices. This enables the app to receive text in any language and from any input type, like keyboard, speech, or pen.
177160
</p>
178161
</div>
179162
<div class="side-by-side-content-right">
@@ -186,26 +169,26 @@ This article describes selecting and manipulating text, images, and controls and
186169
</div>
187170
188171
<div class="side-by-side">
189-
<div class="side-by-side-content">
190-
<p>
191-
<b>[Panning](../../design/input/guidelines-for-panning.md)</b><br/>
192-
Panning or scrolling lets users navigate within a single view, to display the content of the view that does not fit within the viewport.
193-
</p>
194-
</div>
195-
</div>
196-
197172
<div class="side-by-side">
198173
<div class="side-by-side-content">
199174
<div class="side-by-side-content-left">
175+
<p><b>[Custom text input](../../design/input/custom-text-input.md)</b><br/>
176+
The core text APIs in the Windows.UI.Text.Core namespace enable a WinUI app to receive text input from any text service supported on Windows devices. This enables the app to receive text in any language and from any input type, like keyboard, speech, or pen.
177+
</p>
178+
</div>
179+
<div class="side-by-side-content-right">
200180
<p>
201-
<b>[Optical zoom and resizing](../../design/input/guidelines-for-optical-zoom.md)</b><br/>
202-
This article describes Windows zooming and resizing elements and provides user experience guidelines for using these interaction mechanisms in your apps.
181+
<b>[Selecting text and images](../../design/input/guidelines-for-textselection.md)</b><br/>
182+
This article describes selecting and manipulating text, images, and controls and provides user experience guidelines that should be considered when using these mechanisms in your apps.
203183
</p>
204184
</div>
185+
</div>
186+
</div>
187+
</div>
205188
<div class="side-by-side-content-right">
206189
<p>
207190
<b>[Rotation](../../design/input/guidelines-for-rotation.md)</b><br/>
208-
This article describes the new Windows UI for rotation and provides user experience guidelines that should be considered when using this new interaction mechanism in your UWP app.
191+
This article describes the new Windows UI for rotation and provides user experience guidelines that should be considered when using this new interaction mechanism in your WinUI app.
209192
</p>
210193
</div>
211194
</div>
@@ -214,16 +197,16 @@ This article describes the new Windows UI for rotation and provides user experie
214197
<div class="side-by-side">
215198
<div class="side-by-side-content">
216199
<div class="side-by-side-content-left">
217-
<p><b>[Targeting](../../design/input/guidelines-for-targeting.md)</b><br/>
218-
Touch targeting in Windows uses the full contact area of each finger that is detected by a touch digitizer. The larger, more complex set of input data reported by the digitizer is used to increase precision when determining the user's intended (or most likely) target.
200+
<p>
201+
<b>[Optical zoom and resizing](../../design/input/guidelines-for-optical-zoom.md)</b><br/>
202+
This article describes Windows zooming and resizing elements and provides user experience guidelines for using these interaction mechanisms in your apps.
219203
</p>
220204
</div>
221205
<div class="side-by-side-content-right">
222-
<p><b>[Visual feedback](../../design/input/guidelines-for-visualfeedback.md)</b><br/>
223-
Use visual feedback to show users when their interactions are detected, interpreted, and handled. Visual feedback can help users by encouraging interaction. It indicates the success of an interaction, which improves the user's sense of control. It also relays system status and reduces errors.
206+
<p>
207+
<b>[Rotation](../../design/input/guidelines-for-rotation.md)</b><br/>
208+
This article describes the new Windows UI for rotation and provides user experience guidelines that should be considered when using this new interaction mechanism in your WinUI app.
224209
</p>
225210
</div>
226211
</div>
227-
</div> -->
228-
229-
212+
</div>

hub/apps/develop/input/keyboard-interactions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Try to rank and present the most important commands, controls, and content first
9191

9292
Initial focus specifies the UI element that receives focus when an application or a page is first launched or activated. When using a keyboard, it is from this element that a user starts interacting with your application's UI.
9393

94-
For UWP apps, initial focus is set to the element with the highest [TabIndex](/uwp/api/Windows.UI.Xaml.Controls.Control#Windows_UI_Xaml_Controls_Control_TabIndex) that can receive focus. Child elements of container controls are ignored. In a tie, the first element in the visual tree receives focus.
94+
For WinUI apps, initial focus is set to the element with the highest [TabIndex](/uwp/api/Windows.UI.Xaml.Controls.Control#Windows_UI_Xaml_Controls_Control_TabIndex) that can receive focus. Child elements of container controls are ignored. In a tie, the first element in the visual tree receives focus.
9595

9696
#### Set initial focus on the most logical element
9797

hub/apps/develop/input/touch-developer-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ To provide customized touch support, you can handle various [**UIElement**](/uwp
184184

185185
Manipulation events include multi-touch interactions such as zooming, panning, or rotating, and interactions that use inertia and velocity data such as dragging. The information provided by the manipulation events doesn't identify the form of the interaction that was performed, but rather includes data such as position, translation delta, and velocity. You can use this touch data to determine the type of interaction that should be performed.
186186

187-
Here is the basic set of touch gestures supported by UWP.
187+
Here is the basic set of touch gestures supported by WinUI.
188188

189189
| Name | Type | Description |
190190
|----------------|----------------------|----------------------------------------------------------------------------------------|

0 commit comments

Comments
 (0)