New to Telerik UI for WPFStart a free 30-day trial

Commands Overview

Updated on Sep 15, 2025

RadTimeBar provides a set of built-in commands that enables you to further control its behavior and keep your logic separated from the UI layout.

The following list contains all of the supported commands provided by the RadTimeBarCommands class:

  • CenterSelection: Changes the visible period of the control, in order to show the selection centered.

  • ExpandVisiblePeriod: Expands the visible period range to period range.

  • ExpandVisiblePeriodToStart: Expands the visible period start to period start.

  • ExpandVisiblePeriodToEnd: Expands the visible period end to period end.

  • SelectionGroupInterval: Allows you to select the current group interval.

  • SelectionGroupIntervalStart: Allows you to select the start of the current group interval.

  • SelectionGroupIntervalEnd: Allows you to select the end of the current group interval.

As the commands provided by RadTimeBarCommands class are ICommands at their core, they do provide methods for both checking if they can be invoked - CanExecute and for invoking them - Execute.

Command execution

C#
    private void RadButton_Click(object sender, RoutedEventArgs e)
    {
        RoutedUICommand centerSelection = RadTimeBarCommands.CenterSelection as RoutedUICommand;
        centerSelection.Execute(null, this.radTimeBar);
    }
Not finding the help you need?
Contact Support