Class LinearMarkerPointer
Base class for LinearShapePointer and LinearContentPointer. It holds the common properties and logics for customizing LinearShapePointer and LinearContentPointer.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Gauges
Assembly: Syncfusion.Gauge.WinUI.dll
Syntax
public abstract class LinearMarkerPointer : LinearGaugePointer
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis>
<gauge:LinearAxis.MarkerPointers>
<gauge:LinearShapePointer Value="30" />
<gauge:LinearContentPointer Value="60"
VerticalAnchor="End"
OffsetPoint="0,-3">
<gauge:LinearContentPointer.Content>
<Grid Background="Orange"
BorderBrush="Black"
BorderThickness="1"
CornerRadius="4">
<TextBlock Text="60"
Margin="2" />
</Grid>
</gauge:LinearContentPointer.Content>
</gauge:LinearContentPointer>
</gauge:LinearAxis.MarkerPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
Constructors
LinearMarkerPointer()
Initializes a new instance of the LinearMarkerPointer class.
Declaration
public LinearMarkerPointer()
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis>
<gauge:LinearAxis.MarkerPointers>
<gauge:LinearShapePointer Value="30" />
<gauge:LinearContentPointer Value="60"
VerticalAnchor="End"
OffsetPoint="0,-3">
<gauge:LinearContentPointer.Content>
<Grid Background="Orange"
BorderBrush="Black"
BorderThickness="1"
CornerRadius="4">
<TextBlock Text="60"
Margin="2" />
</Grid>
</gauge:LinearContentPointer.Content>
</gauge:LinearContentPointer>
</gauge:LinearAxis.MarkerPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
Fields
HorizontalAnchorProperty
Identifies the HorizontalAnchor dependency property.
Declaration
public static readonly DependencyProperty HorizontalAnchorProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for HorizontalAnchor dependency property. |
OffsetPointProperty
Identifies the OffsetPoint dependency property.
Declaration
public static readonly DependencyProperty OffsetPointProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for OffsetPoint dependency property. |
VerticalAnchorProperty
Identifies the VerticalAnchor dependency property.
Declaration
public static readonly DependencyProperty VerticalAnchorProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for VerticalAnchor dependency property. |
Properties
HorizontalAnchor
Gets or sets the horizontal placement (left, center or right) of the marker pointer relative to its position.
Declaration
public GaugeAnchor HorizontalAnchor { get; set; }
Property Value
Type | Description |
---|---|
GaugeAnchor | One of the enumeration values that specifies the horizontal position of marker in the linear gauge. The default is Center. |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis>
<gauge:LinearAxis.MarkerPointers>
<gauge:LinearContentPointer Value="60"
HorizontalAnchor="Center"
VerticalAnchor="End"
OffsetPoint="0,-3">
<gauge:LinearContentPointer.Content>
<Grid Background="Orange"
BorderBrush="Black"
BorderThickness="1"
CornerRadius="4">
<TextBlock Text="60"
Margin="2" />
</Grid>
</gauge:LinearContentPointer.Content>
</gauge:LinearContentPointer>
</gauge:LinearAxis.MarkerPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
OffsetPoint
Gets or sets a value that specifies the marker position value.
Declaration
public Point OffsetPoint { get; set; }
Property Value
Type | Description |
---|---|
Windows.Foundation.Point | Its default value is |
Remarks
Offset point x defines the left or right distance from the pointer value. Offset point y defines the bottom or top distance from the pointer value.
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis>
<gauge:LinearAxis.MarkerPointers>
<gauge:LinearContentPointer Value="60"
VerticalAnchor="End"
OffsetPoint="0,-3">
<gauge:LinearContentPointer.Content>
<Grid Background="Orange"
BorderBrush="Black"
BorderThickness="1"
CornerRadius="4">
<TextBlock Text="60"
Margin="2" />
</Grid>
</gauge:LinearContentPointer.Content>
</gauge:LinearContentPointer>
</gauge:LinearAxis.MarkerPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
VerticalAnchor
Gets or sets the vertical placement (top, center or bottom) of the marker pointer relative to its position.
Declaration
public GaugeAnchor VerticalAnchor { get; set; }
Property Value
Type | Description |
---|---|
GaugeAnchor | One of the enumeration values that specifies the vertical position of marker in the linear gauge. The default is Center. |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis>
<gauge:LinearAxis.MarkerPointers>
<gauge:LinearContentPointer Value="60"
VerticalAnchor="End"
OffsetPoint="0,-3">
<gauge:LinearContentPointer.Content>
<Grid Background="Orange"
BorderBrush="Black"
BorderThickness="1"
CornerRadius="4">
<TextBlock Text="60"
Margin="2" />
</Grid>
</gauge:LinearContentPointer.Content>
</gauge:LinearContentPointer>
</gauge:LinearAxis.MarkerPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>