TimeBarPanelBase
Base class for all panels used in RadTimeBar.
Definition
Namespace:Telerik.Windows.Controls.TimeBar
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public abstract class TimeBarPanelBase : Panel
Inheritance: objectTimeBarPanelBase
Derived Classes:
Constructors
Initializes a new instance of the TimeBarPanelBase class.
protected TimeBarPanelBase()
Fields
SliderMaximumProperty
DependencyProperty
Identifies the SliderMaximum dependency property.
public static readonly DependencyProperty SliderMaximumProperty
SliderMinimumProperty
DependencyProperty
Identifies the SliderMinimum dependency property.
public static readonly DependencyProperty SliderMinimumProperty
SliderProperty
DependencyProperty
Identifies the Slider dependency property.
public static readonly DependencyProperty SliderProperty
Properties
Gets or sets the end of the period that the control visualizes. The PeriodEnd value itself is excluded from the period.
public DateTime PeriodEnd { get; protected set; }
The end of the period that the control visualizes.
The PeriodStart value must be less than or equal to the value of PeriodEnd.
Gets or sets the start of the period that the control visualizes.
public DateTime PeriodStart { get; protected set; }
The start of the period that the control visualizes.
The PeriodStart value must be less than or equal to the value of PeriodEnd.
Gets or sets the number of pixels per tick.
protected double PixelsPerTick { get; set; }
The number of pixels per tick.
Gets or sets the RadSlider used to control the zooming and scrolling in this TimeBarPanelBase.
public RadSlider Slider { get; set; }
The RadSlider used to control the zooming and scrolling in this TimeBarPanelBase.
Gets or sets the end of the visible period.
public DateTime VisiblePeriodEnd { get; protected set; }
The end of the visible period.
The VisiblePeriodStart value must be less than or equal to the value of VisiblePeriodEnd. Additionally, both VisiblePeriodStart and VisiblePeriodEnd must be within the period, defined by the PeriodStart and PeriodEnd properties.
Gets or sets the start of the visible period.
public DateTime VisiblePeriodStart { get; protected set; }
The start of the visible period.
The VisiblePeriodStart value must be less than or equal to the value of VisiblePeriodEnd. Additionally, both VisiblePeriodStart and VisiblePeriodEnd must be within the period, defined by the PeriodStart and PeriodEnd properties.
Methods
Calculates the available size for the panel and its children based on the Size passed to the . The positive and negative infinity values are replaced with 0.
protected static Size CalculateAvailableSize(Size availableSize)
The Size passed to the .
Returns:Size
The Size with replaced positive and negative infinity with 0.
Calculates the number of pixels per tick based on the specified of the panel and the period in Ticks it visualizes.
Called when either the or the properties change value on this panel.
protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)
The panel where the event handler is attached.
eSizeChangedEventArgsThe SizeChangedEventArgs instance containing the event data.
Updates the properties of the panel based on the state of the Slider. This method should be called in before the size of the children of the panel are calculated.
protected virtual void UpdateScroll(Size size)
The Size passed to the .