Class SfRangeNavigator
Represents the SfRangeNavigator class.
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.WPF.dll
Syntax
public class SfRangeNavigator : Control
Constructors
SfRangeNavigator()
Initializes a new instance of the SfRangeNavigator class.
Declaration
public SfRangeNavigator()
Fields
ContentProperty
The DependencyProperty for Content property.
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
OverlayBrushProperty
The DependencyProperty for OverlayBrush property.
Declaration
public static readonly DependencyProperty OverlayBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ScrollbarVisibilityProperty
The DependencyProperty for ScrollbarVisibility property.
Declaration
public static readonly DependencyProperty ScrollbarVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ViewRangeEndProperty
The DependencyProperty for ViewRangeEnd property.
Declaration
public static readonly DependencyProperty ViewRangeEndProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ViewRangeStartProperty
The DependencyProperty for ViewRangeStart property.
Declaration
public static readonly DependencyProperty ViewRangeStartProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ZoomFactorProperty
The DependencyProperty for ZoomFactor property.
Declaration
public static readonly DependencyProperty ZoomFactorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ZoomPositionProperty
The DependencyProperty for ZoomPosition property.
Declaration
public static readonly DependencyProperty ZoomPositionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
Content
Gets or sets the content that needs to be hosted inside the Navigator, the content can be any UI element.
Declaration
public object Content { get; set; }
Property Value
Type |
---|
System.Object |
OverlayBrush
Gets or sets the overlay brush color.
Declaration
public Brush OverlayBrush { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The System.Windows.Media.Brush value. |
ScrollbarVisibility
Gets or sets the visibility of the scrollbar.
Declaration
public Visibility ScrollbarVisibility { get; set; }
Property Value
Type |
---|
System.Windows.Visibility |
ViewRangeEnd
Gets or sets Navigator's End Thumb value, Value can be DateTime if Minimum and Maximum are set as DateTime values.
Declaration
public object ViewRangeEnd { get; set; }
Property Value
Type |
---|
System.Object |
ViewRangeStart
Gets or sets Navigator's Start Thumb value, Value can be DateTime if Minimum and Maximum are set as DateTime values.
Declaration
public object ViewRangeStart { get; set; }
Property Value
Type |
---|
System.Object |
ZoomFactor
Gets or sets zoom factor. Value must fall within 0 to 1. It determines delta of visible range.
Declaration
public double ZoomFactor { get; set; }
Property Value
Type |
---|
System.Double |
ZoomPosition
Gets or sets zoom position. Value must fall within 0 to 1. It determines starting value of visible range
Declaration
public double ZoomPosition { get; set; }
Property Value
Type |
---|
System.Double |
Methods
Deserialize()
Deserialize the navigator.
Declaration
public object Deserialize()
Returns
Type | Description |
---|---|
System.Object | Returns the root object. |
Deserialize(Stream)
Deserialize the navigator with the given stream.
Declaration
public object Deserialize(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The Stream |
Returns
Type | Description |
---|---|
System.Object | Returns the root object |
Deserialize(String)
Deserialize the navigator with the given file name.
Declaration
public object Deserialize(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | The File Name. |
Returns
Type | Description |
---|---|
System.Object | Returns the root object. |
OnApplyTemplate()
Applies the templates for the control.
Declaration
public override void OnApplyTemplate()
OnScrollbarValueChanged(Object, EventArgs)
Updates the SfRangeNavigator on scroll bar value changed.
Declaration
protected virtual void OnScrollbarValueChanged(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The Sender Object |
System.EventArgs | e | The Event Arguments |
OnTimeLineSizeChanged(Object, SizeChangedEventArgs)
Updates the SfRangeNavigator on time line size changed.
Declaration
protected virtual void OnTimeLineSizeChanged(object sender, SizeChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The Sender Object |
System.Windows.SizeChangedEventArgs | e | The Event Argument |
OnTimeLineValueChanged(Object, EventArgs)
Updates the SfRangeNavigator on time line value changed.
Declaration
protected virtual void OnTimeLineValueChanged(object sender, EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The Sender Object |
System.EventArgs | e | The Event Arguments. |
OnValueChanged()
Updates the SfRangeNavigator on it's value change.
Declaration
protected virtual void OnValueChanged()
Serialize()
Serialize the navigator.
Declaration
public void Serialize()
Serialize(Stream)
Serialize the navigator with the given file stream.
Declaration
public void Serialize(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The Stream |
Serialize(String)
Serialize the navigator with the given file name.
Declaration
public void Serialize(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | The File Name |
Events
ValueChanged
Declaration
public event EventHandler ValueChanged
Event Type
Type |
---|
System.EventHandler |