Class
TimeBarPanelBase

Base class for all panels used in RadTimeBar.

Definition

Namespace:Telerik.Windows.Controls.TimeBar

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public abstract class TimeBarPanelBase : Panel

Inheritance: objectTimeBarPanelBase

Derived Classes: TimeBarContentPanelTimeBarPanelTimeBarStackPanelSelectionRegionPanel

Constructors

TimeBarPanelBase()

Initializes a new instance of the TimeBarPanelBase class.

Declaration

cs-api-definition
protected TimeBarPanelBase()

Fields

SliderMaximumProperty

Identifies the SliderMaximum dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SliderMaximumProperty

Field Value

DependencyProperty

SliderMinimumProperty

Identifies the SliderMinimum dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SliderMinimumProperty

Field Value

DependencyProperty

SliderProperty

Identifies the Slider dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty SliderProperty

Field Value

DependencyProperty

Properties

PeriodEnd

Gets or sets the end of the period that the control visualizes. The PeriodEnd value itself is excluded from the period.

Declaration

cs-api-definition
public DateTime PeriodEnd { get; protected set; }

Property Value

DateTime

The end of the period that the control visualizes.

Remarks

The PeriodStart value must be less than or equal to the value of PeriodEnd.

PeriodStart

Gets or sets the start of the period that the control visualizes.

Declaration

cs-api-definition
public DateTime PeriodStart { get; protected set; }

Property Value

DateTime

The start of the period that the control visualizes.

Remarks

The PeriodStart value must be less than or equal to the value of PeriodEnd.

PixelsPerTick

Gets or sets the number of pixels per tick.

Declaration

cs-api-definition
protected double PixelsPerTick { get; set; }

Property Value

double

The number of pixels per tick.

Slider

Gets or sets the RadSlider used to control the zooming and scrolling in this TimeBarPanelBase.

Declaration

cs-api-definition
public RadSlider Slider { get; set; }

Property Value

RadSlider

The RadSlider used to control the zooming and scrolling in this TimeBarPanelBase.

SliderMaximum

Gets or sets the of the Slider.

Declaration

cs-api-definition
public double SliderMaximum { get; set; }

Property Value

double

The of the Slider.

SliderMinimum

Gets or sets the of the Slider.

Declaration

cs-api-definition
public double SliderMinimum { get; set; }

Property Value

double

The of the Slider.

VisiblePeriodEnd

Gets or sets the end of the visible period.

Declaration

cs-api-definition
public DateTime VisiblePeriodEnd { get; protected set; }

Property Value

DateTime

The end of the visible period.

Remarks

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.

VisiblePeriodStart

Gets or sets the start of the visible period.

Declaration

cs-api-definition
public DateTime VisiblePeriodStart { get; protected set; }

Property Value

DateTime

The start of the visible period.

Remarks

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

CalculateAvailableSize(Size)

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.

Declaration

cs-api-definition
protected static Size CalculateAvailableSize(Size availableSize)

Parameters

availableSize

Size

The Size passed to the .

Returns

Size

The Size with replaced positive and negative infinity with 0.

CalculateItemSize(long)

Calculates the size of an item in pixels based on the period in Ticks that this item represents.

Declaration

cs-api-definition
protected virtual double CalculateItemSize(long ticks)

Parameters

ticks

long

The period in Ticks that the item represents.

Returns

double

The size of the item in pixels.

CalculatePixelsPerTick(double)

Calculates the number of pixels per tick based on the specified of the panel.

Declaration

cs-api-definition
protected virtual double CalculatePixelsPerTick(double size)

Parameters

size

double

The of the panel.

Returns

double

The number of pixels per tick.

CalculatePixelsPerTick(double, long)

Calculates the number of pixels per tick based on the specified of the panel and the period in Ticks it visualizes.

Declaration

cs-api-definition
protected static double CalculatePixelsPerTick(double size, long ticks)

Parameters

size

double

The of the panel.

ticks

long

The period in Ticks that the panel visualizes.

Returns

double

The number of pixels per tick.

OnSizeChanged(object, SizeChangedEventArgs)

Called when either the or the properties change value on this panel.

Declaration

cs-api-definition
protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)

Parameters

sender

object

The panel where the event handler is attached.

e

SizeChangedEventArgs

The SizeChangedEventArgs instance containing the event data.

UpdateScroll(Size)

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.

Declaration

cs-api-definition
protected virtual void UpdateScroll(Size size)

Parameters

size

Size

The Size passed to the .