New to Telerik UI for WPFStart a free 30-day trial

Base class containing common functionality for all sparkline controls.

Definition

Namespace:Telerik.Windows.Controls.Sparklines

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public abstract class RadSparklineBase : Control

Inheritance: objectRadSparklineBase

Derived Classes: RadIndicatedSparklineBase

Constructors

Initializes a new instance of the RadSparklineBase class.

C#
protected RadSparklineBase()

Fields

AutoRangeProperty

DependencyProperty

Identifies the AutoRange dependency property.

C#
public static readonly DependencyProperty AutoRangeProperty

AxisOriginValueProperty

DependencyProperty

Identifies the AxisOriginValue dependency property.

C#
public static readonly DependencyProperty AxisOriginValueProperty

AxisStrokeProperty

DependencyProperty

Identifies the AxisStroke dependency property.

C#
public static readonly DependencyProperty AxisStrokeProperty

AxisVisibilityProperty

DependencyProperty

Identifies the AxisVisibility dependency property.

C#
public static readonly DependencyProperty AxisVisibilityProperty

AxisWidthProperty

DependencyProperty

Identifies the AxisWidth dependency property.

C#
public static readonly DependencyProperty AxisWidthProperty

EmptyPointBehaviorProperty

DependencyProperty

Identifies the EmptyPointBehavior dependency property.

C#
public static readonly DependencyProperty EmptyPointBehaviorProperty

ItemsSourceProperty

DependencyProperty

Identifies the ItemsSource dependency property.

C#
public static readonly DependencyProperty ItemsSourceProperty

MaxXValueProperty

DependencyProperty

Identifies the MaxXValue dependency property.

C#
public static readonly DependencyProperty MaxXValueProperty

MaxYValueProperty

DependencyProperty

Identifies the MaxYValue dependency property.

C#
public static readonly DependencyProperty MaxYValueProperty

MinXValueProperty

DependencyProperty

Identifies the MinXValue dependency property.

C#
public static readonly DependencyProperty MinXValueProperty

MinYValueProperty

DependencyProperty

Identifies the MinYValue dependency property.

C#
public static readonly DependencyProperty MinYValueProperty

ShowAxisProperty

DependencyProperty

Identifies the ShowAxis dependency property.

C#
public static readonly DependencyProperty ShowAxisProperty

XValuePathProperty

DependencyProperty

Identifies the XValuePath dependency property.

C#
public static readonly DependencyProperty XValuePathProperty

YValuePathProperty

DependencyProperty

Identifies the XValuePath dependency property.

C#
public static readonly DependencyProperty YValuePathProperty

ZeroYPositionProperty

DependencyProperty

Identifies the ZeroYPosition dependency property.

C#
public static readonly DependencyProperty ZeroYPositionProperty

Properties

Gets or sets the AutoRange.

C#
public bool AutoRange { get; set; }

Gets or sets the AxisOriginValue.

C#
public double AxisOriginValue { get; set; }

Gets or sets the axis stroke.

C#
public Brush AxisStroke { get; set; }
Property Value:

The axis stroke.

AxisVisibility

Visibility

This property supports the RadSparklineBase infrastructure and is not intended to be used directly from your code.

C#
public Visibility AxisVisibility { get; }

Gets or sets the AxisWidth.

C#
public double AxisWidth { get; set; }

Gets or sets the EmptyPointBehavior.

C#
public EmptyPointBehavior EmptyPointBehavior { get; set; }

Gets or sets the items source property.

C#
public IEnumerable ItemsSource { get; set; }

Gets or sets the MaxXValue.

C#
public double MaxXValue { get; set; }

Gets or sets the MaxYValue.

C#
public double MaxYValue { get; set; }

Gets or sets the MinXValue.

C#
public double MinXValue { get; set; }

Gets or sets the MinYValue.

C#
public double MinYValue { get; set; }

Gets or sets a value indicating whether to show axis.

C#
public bool ShowAxis { get; set; }
Property Value:

If show axis - true; otherwise, false.

Gets the visual data points.

C#
protected IEnumerable<VisualDataPoint> VisualDataPoints { get; }
Property Value:

The visual data points.

Gets or sets the X value path.

C#
public string XValuePath { get; set; }

Gets or sets the Y value path.

C#
public string YValuePath { get; set; }

This property supports the RadSparklineBase infrastructure and is not intended to be used directly from your code.

C#
public double ZeroYPosition { get; }

Methods

Calculates the Y position.

C#
protected virtual void CalculateYPosition()

Occurs when the value of the property IsVirtualizationEnabled has changed.

C#
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.

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSize

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 .

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

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().

C#
protected virtual void OnDataChanged()

Called when [empty point behavior changed].

C#
protected virtual void OnEmptyPointBehaviorChanged()

Called when range has changed.

C#
protected virtual void OnRangeChanged()

Called when [size changed].

C#
protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)
Parameters:senderobject

The sender.

eSizeChangedEventArgs

The SizeChangedEventArgs instance containing the event data.

Called when the visible range changes.

C#
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!!!.

C#
protected virtual void UpdateItemsPanels()