RadSparklineBase
Base class containing common functionality for all sparkline controls.
Definition
Namespace:Telerik.Windows.Controls.Sparklines
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public abstract class RadSparklineBase : Control
Inheritance: objectRadSparklineBase
Derived Classes:
Constructors
Initializes a new instance of the RadSparklineBase class.
protected RadSparklineBase()
Fields
AutoRangeProperty
DependencyProperty
Identifies the AutoRange dependency property.
public static readonly DependencyProperty AutoRangeProperty
AxisOriginValueProperty
DependencyProperty
Identifies the AxisOriginValue dependency property.
public static readonly DependencyProperty AxisOriginValueProperty
AxisStrokeProperty
DependencyProperty
Identifies the AxisStroke dependency property.
public static readonly DependencyProperty AxisStrokeProperty
AxisVisibilityProperty
DependencyProperty
Identifies the AxisVisibility dependency property.
public static readonly DependencyProperty AxisVisibilityProperty
AxisWidthProperty
DependencyProperty
Identifies the AxisWidth dependency property.
public static readonly DependencyProperty AxisWidthProperty
EmptyPointBehaviorProperty
DependencyProperty
Identifies the EmptyPointBehavior dependency property.
public static readonly DependencyProperty EmptyPointBehaviorProperty
ItemsSourceProperty
DependencyProperty
Identifies the ItemsSource dependency property.
public static readonly DependencyProperty ItemsSourceProperty
MaxXValueProperty
DependencyProperty
Identifies the MaxXValue dependency property.
public static readonly DependencyProperty MaxXValueProperty
MaxYValueProperty
DependencyProperty
Identifies the MaxYValue dependency property.
public static readonly DependencyProperty MaxYValueProperty
MinXValueProperty
DependencyProperty
Identifies the MinXValue dependency property.
public static readonly DependencyProperty MinXValueProperty
MinYValueProperty
DependencyProperty
Identifies the MinYValue dependency property.
public static readonly DependencyProperty MinYValueProperty
ShowAxisProperty
DependencyProperty
Identifies the ShowAxis dependency property.
public static readonly DependencyProperty ShowAxisProperty
XValuePathProperty
DependencyProperty
Identifies the XValuePath dependency property.
public static readonly DependencyProperty XValuePathProperty
YValuePathProperty
DependencyProperty
Identifies the XValuePath dependency property.
public static readonly DependencyProperty YValuePathProperty
ZeroYPositionProperty
DependencyProperty
Identifies the ZeroYPosition dependency property.
public static readonly DependencyProperty ZeroYPositionProperty
Properties
Gets or sets the AxisOriginValue.
public double AxisOriginValue { get; set; }
AxisStroke
Brush
Gets or sets the axis stroke.
public Brush AxisStroke { get; set; }
The axis stroke.
AxisVisibility
Visibility
This property supports the RadSparklineBase infrastructure and is not intended to be used directly from your code.
public Visibility AxisVisibility { get; }
Gets or sets the EmptyPointBehavior.
public EmptyPointBehavior EmptyPointBehavior { get; set; }
Gets or sets the items source property.
public IEnumerable ItemsSource { get; set; }
Gets or sets a value indicating whether to show axis.
public bool ShowAxis { get; set; }
If show axis - true; otherwise, false.
Gets the visual data points.
protected IEnumerable<VisualDataPoint> VisualDataPoints { get; }
The visual data points.
Gets or sets the X value path.
public string XValuePath { get; set; }
Gets or sets the Y value path.
public string YValuePath { get; set; }
This property supports the RadSparklineBase infrastructure and is not intended to be used directly from your code.
public double ZeroYPosition { get; }
Methods
Calculates the Y position.
protected virtual void CalculateYPosition()
Occurs when the value of the property IsVirtualizationEnabled has changed.
protected virtual void IsVirtualizationEnabledChanged()
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
protected override Size MeasureOverride(Size availableSize)
The available size that this object can give to child objects. Infinity (PositiveInfinity) can be specified as a value to indicate that the object will size to whatever content is available.
Returns:Size
The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects; or based on other considerations, such as a fixed container size.
When overridden in a derived class, is invoked whenever application code or internal processes call .
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Called when underlying data has changed significantly and requires the control to redraw itself. Please use to synchronize non ItemsControl based graphics. For ItemsControl based graphics use UpdateItemsPanels().
protected virtual void OnDataChanged()
Called when [empty point behavior changed].
protected virtual void OnEmptyPointBehaviorChanged()
Called when range has changed.
protected virtual void OnRangeChanged()
Called when [size changed].
protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)
The sender.
eSizeChangedEventArgsThe SizeChangedEventArgs instance containing the event data.
Called when the visible range changes.
protected virtual void OnVisibleDataChanged()
This method is used to force the layout update of items panels when only the DataRange is changed. ItemsPanels update their layout automatically when items are added or removed from the ItemsControl or when the size of the control is updated.
DO NOT CALL when number of items in items source has changed!!!.
protected virtual void UpdateItemsPanels()