CircularPointerLabel Class
Represents a text pointer for use in a CircularGauge.
public class CircularPointerLabel : CircularPointerBase, ILogicalParent, IVisualParent
- Inheritance:
- object Visual UIElement FrameworkElement GaugeElement PointerBase CircularPointerBase object
- Implements:
- ILogicalParent IVisualParent
Remarks
For detailed documentation on this control's features and how to use them, please see the Gauge documentation topics.
Constructors
CircularPointerLabel()
Initializes an instance of the class.
public CircularPointerLabel()
Properties
FontFamily
Gets or sets the font family. This is a dependency property.
public FontFamily FontFamily { get; set; }
Property Value
- FontFamily:
The font family. The default value is
SystemFonts.MessageFontFamily
.
FontSize
Gets or sets the size of the font. This is a dependency property.
public Unit FontSize { get; set; }
Property Value
- Unit:
The size of the font. The default value is
SystemFonts.MessageFontSize
.
FontStyle
Gets or sets the font style. This is a dependency property.
public FontStyle FontStyle { get; set; }
Property Value
- FontStyle:
The font style. The default value is
SystemFonts.MessageFontStyle
.
FontWeight
Gets or sets the font weight. This is a dependency property.
public FontWeight FontWeight { get; set; }
Property Value
- FontWeight:
The font weight. The default value is
SystemFonts.MessageFontWeight
.
Foreground
Gets or sets the foreground brush. This is a dependency property.
public Brush Foreground { get; set; }
Property Value
- Brush:
The foreground brush. The default value is
WhiteSmoke
.
RoundMode
Gets or sets a RoundMode indicating how to round the values displayed. This is a dependency property.
public RoundMode RoundMode { get; set; }
Property Value
Text
Gets or sets the text that should be rendered at the specified value. This is a dependency property.
[Localizability(LocalizationCategory.Title)]
public string Text { get; set; }
Property Value
- string:
The text that should be rendered. The default value is
null
.
TextFormat
Gets or sets the format used to convert Value
to a string. This is a dependency property.
public string TextFormat { get; set; }
Property Value
- string:
The format used to convert
Value
to a string. The default value is"{0:G}"
.
TextOrientation
Gets or sets the text orientation. This is a dependency property.
public TextOrientation TextOrientation { get; set; }
Property Value
- TextOrientation:
The text orientation. The default value is
TextOrientation.Normal
.
Methods
GetValueText(double)
Gets the string representation of the specified value, using TextFormat and RoundMode.
protected virtual string GetValueText(double value)
Parameter | Type | Description |
---|---|---|
value | double | The value. |
Returns
- string:
The string representation of the specified value.
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
protected override void OnRender(DrawingContext drawingContext)
Parameter | Type | Description |
---|---|---|
drawingContext | DrawingContext | The drawing instructions for a specific element. This context is provided to the layout system. |
Fields
FontFamilyProperty
Identifies the FontFamily dependency property. This field is read-only.
public static readonly DependencyProperty FontFamilyProperty
FontSizeProperty
Identifies the FontSize dependency property. This field is read-only.
public static readonly DependencyProperty FontSizeProperty
FontStyleProperty
Identifies the FontStyle dependency property. This field is read-only.
public static readonly DependencyProperty FontStyleProperty
FontWeightProperty
Identifies the FontWeight dependency property. This field is read-only.
public static readonly DependencyProperty FontWeightProperty
ForegroundProperty
Identifies the Foreground dependency property. This field is read-only.
public static readonly DependencyProperty ForegroundProperty
RoundModeProperty
Identifies the RoundMode dependency property. This field is read-only.
public static readonly DependencyProperty RoundModeProperty
TextFormatProperty
Identifies the TextFormat dependency property. This field is read-only.
public static readonly DependencyProperty TextFormatProperty
TextOrientationProperty
Identifies the TextOrientation dependency property. This field is read-only.
public static readonly DependencyProperty TextOrientationProperty
TextProperty
Identifies the Text dependency property. This field is read-only.
public static readonly DependencyProperty TextProperty
Inherited Members
- CircularPointerBase.PointerDirectionProperty
- CircularPointerBase.ValueAngleProperty
- CircularPointerBase.CalculateAngle(double)
- CircularPointerBase.CalculateValue(Point)
- CircularPointerBase.CalculateValue(double)
- CircularPointerBase.UpdateDisplayValue()
- CircularPointerBase.UpdateValueAngle()
- CircularPointerBase.PointerDirection
- CircularPointerBase.Radius
- CircularPointerBase.ScaleBarExtent
- CircularPointerBase.StartAngle
- CircularPointerBase.SweepAngle
- CircularPointerBase.ValueAngle
- PointerBase.ValueChangingEvent
- PointerBase.ValueChangedEvent
- PointerBase.BackgroundProperty
- PointerBase.BorderBrushProperty
- PointerBase.BorderDashStyleProperty
- PointerBase.BorderWidthProperty
- PointerBase.CanDragProperty
- PointerBase.DampeningMaximumDurationProperty
- PointerBase.DampeningMinimumDurationProperty
- PointerBase.DisplayValueProperty
- PointerBase.DragCursorProperty
- PointerBase.HasDropShadowProperty
- PointerBase.IsDraggingProperty
- PointerBase.IsDraggingAnimatedProperty
- PointerBase.IsSnappingEnabledProperty
- PointerBase.IsValueChangedEventRaisedProperty
- PointerBase.IsValueChangingEventRaisedProperty
- PointerBase.PointerAscentProperty
- PointerBase.PointerExtentProperty
- PointerBase.RefreshRateProperty
- PointerBase.ScaleOffsetProperty
- PointerBase.ScalePlacementProperty
- PointerBase.SnappingIntervalProperty
- PointerBase.SnappingModeProperty
- PointerBase.ThrottledValueProperty
- PointerBase.ValueProperty
- PointerBase.CancelDrag()
- PointerBase.OnCreateAutomationPeer()
- PointerBase.OnKeyDown(KeyEventArgs)
- PointerBase.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PointerBase.OnMouseLeftButtonUp(MouseButtonEventArgs)
- PointerBase.OnMouseMove(MouseEventArgs)
- PointerBase.OnValueChanged(double, double)
- PointerBase.StartDrag(MouseButtonEventArgs)
- PointerBase.UpdateValue(Point)
- PointerBase.Background
- PointerBase.BorderBrush
- PointerBase.BorderDashStyle
- PointerBase.BorderWidth
- PointerBase.CanDrag
- PointerBase.DampeningMaximumDuration
- PointerBase.DampeningMinimumDuration
- PointerBase.DisplayValue
- PointerBase.DragCursor
- PointerBase.HasDropShadow
- PointerBase.IsDragging
- PointerBase.IsDraggingAnimated
- PointerBase.IsLogarithmic
- PointerBase.IsReversed
- PointerBase.IsSnappingEnabled
- PointerBase.IsValueChangedEventRaised
- PointerBase.IsValueChangingEventRaised
- PointerBase.LogarithmicBase
- PointerBase.Maximum
- PointerBase.Minimum
- PointerBase.PointerAscent
- PointerBase.PointerExtent
- PointerBase.RefreshRate
- PointerBase.ThrottledValue
- PointerBase.ScaleOffset
- PointerBase.ScalePlacement
- PointerBase.SnappingInterval
- PointerBase.SnappingMode
- PointerBase.Value
- PointerBase.ValueChanging
- PointerBase.ValueChanged
- GaugeElement.ZIndexProperty
- GaugeElement.GetVisualChild(int)
- GaugeElement.GetZIndex(UIElement)
- GaugeElement.SetZIndex(UIElement, int)
- GaugeElement.VisualChildren
- GaugeElement.VisualChildrenCount
- GaugeElement.ZIndex