Intersoft.Client.UI.Aqua.UXInput Namespace > UXSliderBarBase Class : IsSnapToTickEnabled Property |
<CategoryAttribute("Common Properties")> Public Property IsSnapToTickEnabled As Boolean
Dim instance As UXSliderBarBase Dim value As Boolean instance.IsSnapToTickEnabled = value value = instance.IsSnapToTickEnabled
[CategoryAttribute("Common Properties")] public bool IsSnapToTickEnabled {get; set;}
[CategoryAttribute("Common Properties")] public: property bool IsSnapToTickEnabled { bool get(); void set ( bool value); }
You can enable snap to tick behaviour in UXSliderBar using IsSnapToTickEnabled property. When this property is enabled, all user interaction to change the value will be adjusted to the closest tickbar item. When you select a value within a tickbar range, the value will be adjusted and changed to the closest tickbar item. For example, when you select 3.2 as the value of a UXSliderBar that starts from 0 to 10 with LargeChange set to 1, the value will be adjusted to the closest tickbar item, which is 3.
View |
Copy Code
|
---|---|
<Intersoft:UXSliderBar TickPlacement="BottomRight" HandlesVisibility="Visible" IsSnapToTickEnabled="True" /> |
Snap to tick behavior is implemented in all user interaction of UXSliderBar. When you press the arrow keys or handle buttons, the UXThumb will snap to the previous or next tickbar item. When you drag UXThumb and moves along the track, the UXThumb will snap to the previous or next tickbar item based on the movement.
When snap to tick behavior is enabled, you can still enable precision selection by pressing Ctrl key. If you press Ctrl key while pressing the keyboard keys or buttons or moving the UXThumb, UXThumb will not snap to the closest tickbar item.
Since this behavior is implemented for user interaction only, you can still set the value of UXSliderBar programmatically without invoking the snap to tick. For example: if you use UXButton to set the value of UXSliderBar to 2.8, UXSliderBar will not adjust the value to the closest tickbar item.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2