Intersoft.Client.UI.Aqua.UXInput Namespace : UXTickBar Class |
Public Class UXTickBar Inherits Intersoft.Client.Framework.ISItemsControl Implements Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing
Dim instance As UXTickBar
public class UXTickBar : Intersoft.Client.Framework.ISItemsControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing
public ref class UXTickBar : public Intersoft.Client.Framework.ISItemsControl, Intersoft.Client.Framework.IControl, Intersoft.Client.Framework.IFramework, Intersoft.Client.Framework.IItemsControl, Intersoft.Client.Framework.ILicensing
UXTickBar will use the value of Minimum, Maximum, and LargeChange properties to calculate the number of tickbar items to be displayed.
The following example shows how to create a tick bar that renders five tickbar items that starts from 2 and ends at 10. The value of LargeChange property determines the position where each tickbar item will be rendered with respect of Minimum and Maximum value.
View |
Copy Code
|
---|---|
<Intersoft:UXTickBar Minimum="2" Maximum="10" LargeChange="2"> </Intersoft:UXTickBar> |
By default, as you can see in the above figure, the content of each tickbar item is generated automatically. Alternatively, you can specify custom content for each tick bar item by specifying the Items collection. Note that the number of items will still be determined by Minimum, Maximum, and LargeChange properties. This means, in order to achieve the same layout, you need to specify the same number of tickbar items with custom content.
The following example shows how to create a tick bar with custom content for each tick bar item.
View |
Copy Code
|
---|---|
<Intersoft:UXTickBar Minimum="2" Maximum="10" LargeChange="2"> <Intersoft:UXTickBarItem Content="Item 2" /> <Intersoft:UXTickBarItem Content="Item 4" /> <Intersoft:UXTickBarItem Content="Item 6" /> <Intersoft:UXTickBarItem Content="Item 8" /> <Intersoft:UXTickBarItem Content="Item 10" /> </Intersoft:UXTickBar> |
System.Object
System.Windows.DependencyObject
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ItemsControl
Intersoft.Client.Framework.ISItemsControl
Intersoft.Client.UI.Aqua.UXInput.UXTickBar
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