SurfaceDialTextbox Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |