LinearPointerBase Class
Represents a base class for linear pointers.
public abstract class LinearPointerBase : PointerBase, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, ILogicalParent, IVisualParent
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement GaugeElement PointerBase 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
LinearPointerBase()
Initializes a new instance of the LinearPointerBase class.
protected LinearPointerBase()
Properties
Orientation
Gets the associated orientation of this element, which is inherited/set via an attached property on LinearGauge.
protected Orientation Orientation { get; }
Property Value
- System.Windows.Controls.Orientation:
The radius.
ScaleBarAscent
Gets the ascent of the bar in the associated ScaleBase.
protected double ScaleBarAscent { get; }
Property Value
- System.Double:
The ascent of the bar.
ScaleBarExtent
Gets the extent of the bar in the associated ScaleBase.
protected double ScaleBarExtent { get; }
Property Value
- System.Double:
The extent of the bar.
ValueExtent
Gets or sets the extent used to display the Value on the linear gauge. This is a dependency property.
protected double ValueExtent { get; set; }
Property Value
- System.Double:
The value extent. The default value is
0
.
Methods
CalculateExtent(Double)
Calculates an extent (not including the left/top offsets) for the specified value.
protected double CalculateExtent(double value)
Parameter | Type | Description |
---|---|---|
value | System.Double | The value. |
Returns
- System.Double:
The extent of the specified value, not including the left/top offsets.
CalculateValue(Double)
Calculates the value based on a specified extent.
protected double CalculateValue(double extent)
Parameter | Type | Description |
---|---|---|
extent | System.Double | The extent. |
Returns
- System.Double:
The value of the specified extent.
CalculateValue(Point)
Calculates the value based on a specified point.
protected override double CalculateValue(Point point)
Parameter | Type | Description |
---|---|---|
point | System.Windows.Point | The point. |
Returns
- System.Double:
The value of specified point.
OnRenderSizeChanged(SizeChangedInfo)
Raises the SizeChanged
event, using the specified information as part of the eventual event data.
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
Parameter | Type | Description |
---|---|---|
sizeInfo | System.Windows.SizeChangedInfo | Details of the old and new size involved in the change. |
UpdateDisplayValue()
Updates the DisplayValue
property.
protected virtual void UpdateDisplayValue()
UpdateValueExtent()
Updates the ValueExtent property.
protected virtual void UpdateValueExtent()
Fields
ValueExtentProperty
Identifies the ValueExtent dependency property. This field is read-only.
protected static readonly DependencyProperty ValueExtentProperty
Inherited Members
- 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.ILogicalParent.AddLogicalChild(Object)
- GaugeElement.ILogicalParent.RemoveLogicalChild(Object)
- GaugeElement.IVisualParent.AddVisualChild(Visual)
- GaugeElement.IVisualParent.RemoveVisualChild(Visual)
- GaugeElement.GetVisualChild(Int32)
- GaugeElement.GetZIndex(UIElement)
- GaugeElement.SetZIndex(UIElement, Int32)
- GaugeElement.VisualChildren
- GaugeElement.VisualChildrenCount
- GaugeElement.ZIndex
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()