Represents a needle (or arrow) within a gauge scale.
Namespace: MindFusion.Gauges.Wpf
Assembly: MindFusion.Gauges.Wpf
C# Copy Code |
---|
public class Pointer : Control |
Visual Basic Copy Code |
---|
Public Class Pointer |
The most important member of the pointer object is its Value. The pointer is automatically adjusted by its containing scale so that it points to the scale location, corresponding to its value.
The size of the pointer is defined by the PointerWidth and PointerHeight properties. The size is usually specified as a relative value so that the pointer scales with its containing gauge. The location of the pointer can be adjusted through the PointerOffset property and its alignment in a linear scale can be specified through the Alignment property.
The pointer can be made interactive by setting the IsInteractive property to true. Clicking with the mouse within a scale causes all its interactive pointers to be adjusted to the value corresponding to the clicked point.
A pointer can be made discrete by setting IsDiscrete to true. The value of a discrete pointer is always integer.
Note |
---|
To add a pointer to a scale simply add it to the Pointers collection of the scale. |
To customize the appearance of a pointer associate a new ControlTemplate with it. Several pointers with custom templates are illustrated below.
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
MindFusion.Gauges.Wpf.Pointer