Windows Dev Center

PointerVisualizationSettings class

Provides access to the visual feedback settings for pointer input.

Syntax


Public NotInheritable Class PointerVisualizationSettings

Members

The PointerVisualizationSettings class has these types of members:

Methods

The PointerVisualizationSettings class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
GetForCurrentView Gets a PointerVisualizationSettings object associated with the current app.

 

Properties

The PointerVisualizationSettings class has these properties.

PropertyAccess typeDescription

IsBarrelButtonFeedbackEnabled

Read/writeGets or sets a value that indicates whether visual feedback is enabled for pen/stylus input when the barrel button is pressed.

IsContactFeedbackEnabled

Read/writeGets or sets a value that indicates whether visual feedback is enabled when a pointer contact is detected.

 

Remarks

Call GetForCurrentView to get a PointerVisualizationSettings object associated with the active app. This object is used to set the visual feedback preferences for the app.

Examples

The following example demonstrates the use of GetForCurrentView to retrieve an instance of PointerVisualizationSettings through which the visual feedback preferences for the current app are set.



var pointerVisualizationSettings = Windows.UI.Input.PointerVisualizationSettings.getForCurrentView();
pointerVisualizationSettings.isContactFeedbackEnabled = false;
pointerVisualizationSettings.isBarrelButtonFeedbackEnabled = false;

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Input
Windows::UI::Input [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.UI.Input
Windows::UI::Input [C++]

Metadata

Windows.winmd

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

Object
Reference
Windows.UI.Input Classes
Windows.Devices.Input
Windows.UI.Core
Windows.UI.Input
Windows.UI.Input.Inking
Windows.UI.Xaml.Input
TypedEventHandler
Conceptual
Guidelines for visual feedback
Custom user interactions
UX guidelines for custom user interactions
Touch design guidelines
Samples
User interaction mode sample
Focus visuals sample
Archive samples (Windows Store app APIs)
Input: Device capabilities sample
Input: Ink sample
Input: Manipulations and gestures (JavaScript) sample
Input: Simplified ink sample
Input: Windows 8 gestures sample
Input: XAML user input events sample
XAML scrolling, panning, and zooming sample
Archive samples (DirectX)
DirectX touch input sample
Input: Manipulations and gestures (C++) sample
Input: Touch hit testing sample
Archive samples (Win32/Desktop)
Input source identification sample
Touch injection sample
Win32 touch hit-testing sample

 

 

Show:
© 2015 Microsoft