Use visual feedback to show users when their interactions are алена исекс, interpreted, and handled. Visual feedback can help users by encouraging interaction.
It also relays system status and reduces errors. Contact visualizations are especially critical for touch алена исекс that require accuracy and precision.
For example, your app should clearly indicate the location of a tap to let a user know if they missed their target, how much they алена исекс it by, and what adjustments they must make. Using the default XAML platform controls available ensures that your app works correctly алена исекс all devices and in all input situations.
Алена исекс can be a particular issue in game or drawing apps, where the visual feedback might conflict with or obscure critical UI. For example, the built-in feedback for a алена исекс usually involves moving and changing the cursor, while touch and pen require contact visualizations, and keyboard input and navigation uses focus rectangles and highlighting.
Use ShowGestureFeedback to set feedback behavior for the platform gestures.
If customizing feedback UI, ensure you provide feedback that supports, and алена исекс suitable for, all input modes. All Windows apps sport a more defined focus visual around interactable controls within the application. These new focus visuals are fully customizable as well as disableable when needed.
There are two parts to the high visibility focus visuals: The primary border is 2px thick, and runs around the outside of the secondary border. The secondary border is алена исекс thick and runs around the inside алена исекс the primary border.
To change алена исекс thickness of either border type primary or secondary use the FocusVisualPrimaryThickness алена исекс FocusVisualSecondaryThicknessrespectively:. The margin is a property of type Thicknessand therefore the margin can be customized to appear only on алена исекс sides of the control. The default margin is 1px away from the control bounds. You can edit this margin on a per-control basis, by changing the FocusVisualMargin property:. A negative margin will push the border away from the center of the control, and a positive margin will move the border closer to the center of the control.
To turn off focus visuals on the control entirely, simply disabled UseSystemFocusVisuals:. The thickness, margin, or whether or not the app-developer wishes to have the focus visuals алена исекс all, is determined on a per-control basis. There are only two color properties for the focus visuals: These focus visual border colors can be changed per-control on алена исекс page level, and globally on an app-wide level:.
To change the colors on a per-control basis, just edit the focus visual properties on the desired control:. Our new feedback system is built алена исекс GitHub Issues.
Read about this change in our blog post. Core Recommendations Try to remain as close to the original алена исекс template as possible, for optimal control and application performance. For more info, see ShowGestureFeedback.
Keep the UI clean and uncluttered by not showing visual feedback unless you are adding value that is not available elsewhere. Try not to dramatically customize the visual feedback behaviors of the built-in Windows алена исекс, as this can create an inconsistent and confusing user experience.
Additional usage guidance Contact visualizations are especially critical for touch interactions that require accuracy алена исекс precision. Product алена исекс Sign in to give documentation feedback Content feedback You may also leave feedback directly on GitHub.
There are no open issues.
© 2018 amunity.ru