Class LinearContentPointer
Represents the pointer that is used to indicate the value with any visual content. It behaves like GaugeAnnotation in SfRadialGauge.
Inherited Members
Namespace: Syncfusion.UI.Xaml.Gauges
Assembly: Syncfusion.Gauge.WinUI.dll
Syntax
public class LinearContentPointer : LinearMarkerPointer
Examples
The below examples shows, how to add content pointers to linear axis in linear gauge.
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis>
<gauge:LinearAxis.MarkerPointers>
<gauge:LinearContentPointer Value="20">
<gauge:LinearContentPointer.Content>
<Grid Background="BlueViolet">
<TextBlock Text="{Binding Value}" />
</Grid>
</gauge:LinearContentPointer.Content>
</gauge:LinearContentPointer>
</gauge:LinearAxis.MarkerPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
Constructors
LinearContentPointer()
Initializes a new instance of the LinearContentPointer class.
Declaration
public LinearContentPointer()
Examples
The below examples shows, how to add content pointers to linear axis in linear gauge.
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis>
<gauge:LinearAxis.MarkerPointers>
<gauge:LinearContentPointer Value="20">
<gauge:LinearContentPointer.Content>
<Grid Background="BlueViolet">
<TextBlock Text="{Binding Value}" />
</Grid>
</gauge:LinearContentPointer.Content>
</gauge:LinearContentPointer>
</gauge:LinearAxis.MarkerPointers>
</gauge:LinearAxis>
</gauge:SfLinearGauge.Axis>
</gauge:SfLinearGauge>
Fields
ContentProperty
Identifies the Content dependency property.
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for Content dependency property. |
Properties
Content
Gets or sets the content of a LinearContentPointer.
Declaration
public object Content { get; set; }
Property Value
Type | Description |
---|---|
System.Object | An object that contains the pointer's visual content. The default value is |
Examples
<gauge:SfLinearGauge>
<gauge:SfLinearGauge.Axis>
<gauge:LinearAxis>
<gauge:LinearAxis.MarkerPointers>
<gauge:LinearContentPointer Value="60">
<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>
Methods
OnApplyTemplate()
Invoke to render LinearContentPointer class.
Declaration
protected override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type |
---|
Microsoft.UI.Xaml.Automation.Peers.AutomationPeer |