ClassRadSparklineBase
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
RadSparklineBase()
Initializes a new instance of the RadSparklineBase class.
Declaration
protected RadSparklineBase()
Fields
AutoRangeProperty
Identifies the AutoRange dependency property.
Declaration
public static readonly DependencyProperty AutoRangeProperty
Field Value
DependencyProperty
AxisOriginValueProperty
Identifies the AxisOriginValue dependency property.
Declaration
public static readonly DependencyProperty AxisOriginValueProperty
Field Value
DependencyProperty
AxisStrokeProperty
Identifies the AxisStroke dependency property.
Declaration
public static readonly DependencyProperty AxisStrokeProperty
Field Value
DependencyProperty
AxisVisibilityProperty
Identifies the AxisVisibility dependency property.
Declaration
public static readonly DependencyProperty AxisVisibilityProperty
Field Value
DependencyProperty
AxisWidthProperty
Identifies the AxisWidth dependency property.
Declaration
public static readonly DependencyProperty AxisWidthProperty
Field Value
DependencyProperty
EmptyPointBehaviorProperty
Identifies the EmptyPointBehavior dependency property.
Declaration
public static readonly DependencyProperty EmptyPointBehaviorProperty
Field Value
DependencyProperty
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
DependencyProperty
MaxXValueProperty
Identifies the MaxXValue dependency property.
Declaration
public static readonly DependencyProperty MaxXValueProperty
Field Value
DependencyProperty
MaxYValueProperty
Identifies the MaxYValue dependency property.
Declaration
public static readonly DependencyProperty MaxYValueProperty
Field Value
DependencyProperty
MinXValueProperty
Identifies the MinXValue dependency property.
Declaration
public static readonly DependencyProperty MinXValueProperty
Field Value
DependencyProperty
MinYValueProperty
Identifies the MinYValue dependency property.
Declaration
public static readonly DependencyProperty MinYValueProperty
Field Value
DependencyProperty
ShowAxisProperty
Identifies the ShowAxis dependency property.
Declaration
public static readonly DependencyProperty ShowAxisProperty
Field Value
DependencyProperty
XValuePathProperty
Identifies the XValuePath dependency property.
Declaration
public static readonly DependencyProperty XValuePathProperty
Field Value
DependencyProperty
YValuePathProperty
Identifies the XValuePath dependency property.
Declaration
public static readonly DependencyProperty YValuePathProperty
Field Value
DependencyProperty
ZeroYPositionProperty
Identifies the ZeroYPosition dependency property.
Declaration
public static readonly DependencyProperty ZeroYPositionProperty
Field Value
DependencyProperty
Properties
AutoRange
Gets or sets the AutoRange.
AxisOriginValue
Gets or sets the AxisOriginValue.
AxisStroke
Gets or sets the axis stroke.
Declaration
public Brush AxisStroke { get; set; }
Property Value
Brush
The axis stroke.
AxisVisibility
This property supports the RadSparklineBase infrastructure and is not intended to be used directly from your code.
Declaration
public Visibility AxisVisibility { get; }
Property Value
Visibility
AxisWidth
Gets or sets the AxisWidth.
EmptyPointBehavior
Gets or sets the EmptyPointBehavior.
Declaration
public EmptyPointBehavior EmptyPointBehavior { get; set; }
Property Value
ItemsSource
Gets or sets the items source property.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
MaxXValue
Gets or sets the MaxXValue.
MaxYValue
Gets or sets the MaxYValue.
MinXValue
Gets or sets the MinXValue.
MinYValue
Gets or sets the MinYValue.
ShowAxis
Gets or sets a value indicating whether to show axis.
Declaration
public bool ShowAxis { get; set; }
Property Value
If show axis - true; otherwise, false.
VisualDataPoints
Gets the visual data points.
Declaration
protected IEnumerable<VisualDataPoint> VisualDataPoints { get; }
Property Value
The visual data points.
XValuePath
Gets or sets the X value path.
YValuePath
Gets or sets the Y value path.
ZeroYPosition
This property supports the RadSparklineBase infrastructure and is not intended to be used directly from your code.
Methods
CalculateYPosition()
Calculates the Y position.
Declaration
protected virtual void CalculateYPosition()
IsVirtualizationEnabledChanged()
Occurs when the value of the property IsVirtualizationEnabled has changed.
Declaration
protected virtual void IsVirtualizationEnabledChanged()
MeasureOverride(Size)
Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
Size
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.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call .
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The type-specific AutomationPeer implementation.
OnDataChanged()
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().
Declaration
protected virtual void OnDataChanged()
OnEmptyPointBehaviorChanged()
Called when [empty point behavior changed].
Declaration
protected virtual void OnEmptyPointBehaviorChanged()
OnRangeChanged()
Called when range has changed.
Declaration
protected virtual void OnRangeChanged()
OnSizeChanged(object, SizeChangedEventArgs)
Called when [size changed].
Declaration
protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)
Parameters
sender
The sender.
e
SizeChangedEventArgs
The SizeChangedEventArgs instance containing the event data.
OnVisibleDataChanged()
Called when the visible range changes.
Declaration
protected virtual void OnVisibleDataChanged()
UpdateItemsPanels()
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!!!.
Declaration
protected virtual void UpdateItemsPanels()