skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class TimeBarPanelBase

Base class for all panels used in RadTimeBar.

Inheritance
System.Object
TimeBarPanelBase
TimeBarContentPanel
TimeBarPanel
TimeBarStackPanel
SelectionRegionPanel
Namespace: Telerik.Windows.Controls.TimeBar
Assembly: Telerik.Windows.Controls.DataVisualization.dll

Syntax

public abstract class TimeBarPanelBase : Panel

Constructors

TimeBarPanelBase()

Initializes a new instance of the TimeBarPanelBase class.

Declaration
protected TimeBarPanelBase()

Fields

SliderMaximumProperty

Identifies the SliderMaximum dependency property.

Declaration
public static readonly DependencyProperty SliderMaximumProperty
Field Value
System.Windows.DependencyProperty

SliderMinimumProperty

Identifies the SliderMinimum dependency property.

Declaration
public static readonly DependencyProperty SliderMinimumProperty
Field Value
System.Windows.DependencyProperty

SliderProperty

Identifies the Slider dependency property.

Declaration
public static readonly DependencyProperty SliderProperty
Field Value
System.Windows.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
public DateTime PeriodEnd { get; protected set; }
Property Value
System.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
public DateTime PeriodStart { get; protected set; }
Property Value
System.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
protected double PixelsPerTick { get; set; }
Property Value
System.Double

The number of pixels per tick.

Slider

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

Declaration
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 System.Windows.Controls.Primitives.RangeBase.Maximum of the Slider.

Declaration
public double SliderMaximum { get; set; }
Property Value
System.Double

The System.Windows.Controls.Primitives.RangeBase.Maximum of the Slider.

SliderMinimum

Gets or sets the System.Windows.Controls.Primitives.RangeBase.Minimum of the Slider.

Declaration
public double SliderMinimum { get; set; }
Property Value
System.Double

The System.Windows.Controls.Primitives.RangeBase.Minimum of the Slider.

VisiblePeriodEnd

Gets or sets the end of the visible period.

Declaration
public DateTime VisiblePeriodEnd { get; protected set; }
Property Value
System.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
public DateTime VisiblePeriodStart { get; protected set; }
Property Value
System.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 System.Windows.Size passed to the System.Windows.FrameworkElement.MeasureOverride. The positive and negative infinity values are replaced with 0.

Declaration
protected static Size CalculateAvailableSize(Size availableSize)
Parameters
System.Windows.Size availableSize

The System.Windows.Size passed to the System.Windows.FrameworkElement.MeasureOverride.

Returns
System.Windows.Size

The System.Windows.Size with replaced positive and negative infinity with 0.

CalculateItemSize(Int64)

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

Declaration
protected virtual double CalculateItemSize(long ticks)
Parameters
System.Int64 ticks

The period in System.TimeSpan.Ticks that the item represents.

Returns
System.Double

The size of the item in pixels.

CalculatePixelsPerTick(Double)

Calculates the number of pixels per tick based on the specified System.Windows.FrameworkElement.Width of the panel.

Declaration
protected virtual double CalculatePixelsPerTick(double size)
Parameters
System.Double size

The System.Windows.FrameworkElement.Width of the panel.

Returns
System.Double

The number of pixels per tick.

CalculatePixelsPerTick(Double, Int64)

Calculates the number of pixels per tick based on the specified System.Windows.FrameworkElement.Width of the panel and the period in System.TimeSpan.Ticks it visualizes.

Declaration
protected static double CalculatePixelsPerTick(double size, long ticks)
Parameters
System.Double size

The System.Windows.FrameworkElement.Width of the panel.

System.Int64 ticks

The period in System.TimeSpan.Ticks that the panel visualizes.

Returns
System.Double

The number of pixels per tick.

OnSizeChanged(Object, SizeChangedEventArgs)

Called when either the System.Windows.FrameworkElement.ActualHeight or the System.Windows.FrameworkElement.ActualWidth properties change value on this panel.

Declaration
protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)
Parameters
System.Object sender

The panel where the event handler is attached.

System.Windows.SizeChangedEventArgs e

The System.Windows.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 System.Windows.FrameworkElement.MeasureOverride before the size of the children of the panel are calculated.

Declaration
protected virtual void UpdateScroll(Size size)
Parameters
System.Windows.Size size

The System.Windows.Size passed to the System.Windows.FrameworkElement.MeasureOverride.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.