New to Telerik UI for WinUI? Download free 30-day trial

Commands Overview

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.

Command execution

private void RadButton_Click(object sender, RoutedEventArgs e) 
{ 
    RoutedUICommand centerSelection = RadTimeBarCommands.CenterSelection; 
    centerSelection.Execute(null, this.timeBar); 
} 

See Also

In this article
Not finding the help you need?