SurfaceDialTextbox Class

Definition

Helper class that provides attached properties to enable any TextBox with the Surface Dial. Rotate to change the value by StepValue between MinValue and MaxValue, and tap to go to the Next focus element from a TextBox

public class SurfaceDialTextbox
type SurfaceDialTextbox = class
Public Class SurfaceDialTextbox
Inheritance
SurfaceDialTextbox

Constructors

SurfaceDialTextbox()

Fields

EnableHapticFeedbackProperty

A flag to enable or disable haptic feedback when rotating the dial for the give TextBox. This is enabled by default.

EnableMinMaxValueProperty

EnableMinMax limits the value in the textbox to your spesificed Min and Max values, see the other properties.

EnableTapToNextControlProperty

TapToNext is a feature you can set to automatically try to focus the next focusable element from the Surface Dial enabled TextBox. This is on dy default.

ForceMenuItemProperty

If you provide the Controller yourself, set this to true so you won't add new menu items.

IconProperty

Set the default icon of the menu item that gets added. A user will most likely not see this. Defaults to the Ruler icon.

MaxValueProperty

Sets the maxium value the TextBox can have when modifying it using a Surface Dial. Default is 100.0

MinValueProperty

Sets the minimum value the TextBox can have when modifying it using a Surface Dial. Default is -100.0

StepValueProperty

The amount the TextBox will be modified for each rotation step on the Surface Dial. This can be any double value.

Properties

Controller

Gets or sets the controller for the Surface Dial. The RadialController can be set from your app logic in case you use Surface Dial in other custom cases than on a TextBox. This helper class will do everything for you, but if you want to control the Menu Items and/or wish to use the same Surface Dial insta This is the property for the static controller so you can access it if needed.

IsSupported

Gets a value indicating whether this attached proeprty is supported

Attached Properties

EnableHapticFeedback
EnableMinMaxValue
EnableTapToNextControl
ForceMenuItem
Icon
MaxValue
MinValue
StepValue

Methods

GetEnableHapticFeedback(DependencyObject)

Setter of the Haptic Feedback property

GetEnableMinMaxValue(DependencyObject)

Getter of the EnableMinMax property

GetEnableTapToNextControl(DependencyObject)

Getter of the TapToNext flag.

GetForceMenuItem(DependencyObject)

Getter of the Force Menu Item flag

GetIcon(DependencyObject)

Getter of the Icon

GetMaxValue(DependencyObject)

Getter of the MaxValue

GetMinValue(DependencyObject)

Getter of the MinValue

GetStepValue(DependencyObject)

Setter of the StepValue.

SetEnableHapticFeedback(DependencyObject, Boolean)

Getter of the Haptic Feedback property

SetEnableMinMaxValue(DependencyObject, Boolean)

Setter of the EnableMinMax property

SetEnableTapToNextControl(DependencyObject, Boolean)

Setter of the TapToNext flag.

SetForceMenuItem(DependencyObject, Boolean)

Setter of the Force Menu Item flag

SetIcon(DependencyObject, RadialControllerMenuKnownIcon)

Setter of the Icon

SetMaxValue(DependencyObject, Double)

Setter of the MaxValue

SetMinValue(DependencyObject, Double)

Setter of the MinValue

SetStepValue(DependencyObject, Double)

Getter of the StepValue

Applies to