SparkView
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class SparkView : UISparkElement, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IStylableElement, IStylableNode, IShapedElement, ISparkView, ISparkElementPresenter
Inheritance: objectDisposableObjectRadObjectUISparkElementSparkView
Implements:
Inherited Members
Constructors
Initializes a new instance of the SparkView class.
Initializes a new instance of the SparkView class.
Initializes a new instance of the SparkView class.
Fields
public static RadProperty MarginProperty
public static RadProperty MinSizeProperty
Properties
Gets the annotations.
public SparkAnnotationCollection Annotations { get; }
The annotations.
Gets the area.
[Browsable(false)]
public SparkArea Area { get; }
The area.
Gets the axes.
public SparkAxisCollection Axes { get; }
The axes.
Gets or sets whether the horizontal axis will be painted on top of the series.
public AxisDrawMode AxisDrawMode { get; set; }
Gets the client rectangle.
public RectangleF ClientRectangle { get; }
The client rectangle.
Gets the controllers.
public SparkViewControllerCollection Controllers { get; }
The controllers.
Gets or sets the name of the list or table in the data source for which the SparkSeries is bound.
[Browsable(true)]
public string DataMember { get; set; }
Gets or sets the data source of the SparkSeries.
public object DataSource { get; set; }
public EmptyPointBehavior EmptyPointBehavior { get; set; }
Gets or sets the margin.
public Padding Margin { get; set; }
The margin.
Gets or sets the minimum size.
public SizeF MinSize { get; set; }
The size of the min.
Gets or sets the owner.
public ISparkViewHost Owner { get; set; }
The owner.
Gets the renderer.
public ISparkRenderer Renderer { get; }
The renderer.
Gets the series.
public SparkSeries Series { get; set; }
The series.
Shows or hides the horizontal axis in the sparkline.
public bool ShowAxis { get; set; }
Gets or sets whether the first point indicator will be painted.
public bool ShowFirstPointIndicator { get; set; }
Gets or sets whether the high point marker will be painted.
public bool ShowHighPointIndicator { get; set; }
Gets or sets whether the last point indicator will be painted.
public bool ShowLastPointIndicator { get; set; }
Gets or sets whether the low point indicator will be painted.
public bool ShowLowPointIndicator { get; set; }
Gets or sets whether the negative point markers will be painted.
public bool ShowNegativePointIndicators { get; set; }
Gets or sets whether the tool tip will be shown.
public bool ShowToolTip { get; set; }
The show tool tip.
Gets or sets the viewport.
public RadRect Viewport { get; set; }
The viewport.
Gets or sets the view result.
public ViewResult ViewResult { get; set; }
The view result.
Methods
Defers the refresh.
Draws the specified context.
Gets the area.
public T GetArea<T>() where T : SparkArea
T
Layouts the sparkline.
public void Layout()
Layouts the sparkline indicating whether to invalidate.
Layouts in the specified rect.
Called when [attached].
protected override void OnAttached(UISparkElement parent)
The parent.
Overrides:
Raises the event.
protected virtual void OnCreatePoint(SparklineCreatePointEventArgs e)
The SparklineCreatePointEventArgs instance containing the event data.
Fires the CreateRenderer event.
protected virtual void OnCreateRenderer(object sender, SparklineCreateRendererEventArgs e)
The sender.
eSparklineCreateRendererEventArgsThe SparklineCreateRendererEventArgs instance containing the event data.
Called when data error occurs.
protected virtual void OnDataError(Exception exception)
The exception.
Raises the event.
protected virtual void OnGesture(GestureEventArgs e)
The GestureEventArgs instance containing the event data.
Raises the event.
protected virtual void OnKeyDown(KeyEventArgs e)
The KeyEventArgs instance containing the event data.
Raises the event.
protected virtual void OnKeyPress(KeyPressEventArgs e)
The KeyPressEventArgs instance containing the event data.
Raises the event.
protected virtual void OnKeyUp(KeyEventArgs e)
The KeyEventArgs instance containing the event data.
Raises the event.
protected virtual void OnMouseClick(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Raises the event.
protected virtual void OnMouseDoubleClick(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Raises the event.
protected virtual void OnMouseDown(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Raises the event.
protected virtual void OnMouseMove(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Raises the event.
protected virtual void OnMouseUp(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Raises the event.
protected virtual void OnMouseWheel(MouseEventArgs e)
The MouseEventArgs instance containing the event data.
Raises the event.
protected virtual void OnPanGesture(PanGestureEventArgs e)
The PanGestureEventArgs instance containing the event data.
Raises the event.
protected void OnPressAndTapGesture(PressAndTapGestureEventArgs e)
The PressAndTapGestureEventArgs instance containing the event data.
Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The RadPropertyChangedEventArgs containing information about the property change.
Overrides:
Raises the event.
protected virtual void OnRotateGesture(RotateGestureEventArgs e)
The RotateGestureEventArgs instance containing the event data.
Raises the event.
protected virtual void OnTwoFingerTapGesture(GestureEventArgs e)
The GestureEventArgs instance containing the event data.
Raises the event.
protected virtual void OnZoomGesture(ZoomGestureEventArgs e)
The ZoomGestureEventArgs instance containing the event data.
Performs refreshing the view.
public void PerformRefresh(UISparkElement element, bool updateLayout)
The element.
updateLayoutboolThe update layout.
Processes the result.
protected virtual bool ProcessResult(ActionResult actionResult)
The action result.
Returns:Resets the view.
public void Reset()
Resumes refreshing the view.
public void ResumeRefresh()
Suspends refreshing the view.
public void SuspendRefresh()
public virtual void SyncViewProperties()
Events
Occurs when a new DataPoint is created.
public event SparklineCreatePointEventHandler CreatePoint
Fired when the area requires an renderer for the first time.
public event SparklineCreateRendererEventHandler CreateRenderer
Occurs when a data error is detected.
public event ChartViewDataErrorEventHandler DataError