How to Hide the Forward and Backward Buttons in RadCalendar

Environment

Product Version 2017.3.1018
Product RadCalendar for WPF

Description

How to hide the forward and backward buttons in RadCalendar.

Solution

  1. Subscribe to the Loaded event of RadCalendar.
  2. Use the ChildrenOfType<T> extension method to get the RepeatButton controls representing the move-left and move-right buttons. The ChildrenOfType<T> method is defined in the Telerik.Windows.Controls.ChildrenOfTypeExtensions class.

private void RadCalendar_Loaded(object sender, RoutedEventArgs e) 
{ 
    var calendar = (RadCalendar)sender; 
    var moveLeftButton = calendar.ChildrenOfType<RepeatButton>().FirstOrDefault(x => x.Name == "MoveLeft"); 
    var moveRightButton = calendar.ChildrenOfType<RepeatButton>().FirstOrDefault(x => x.Name == "MoveRight"); 
 
    moveLeftButton.Visibility = Visibility.Collapsed; 
    moveRightButton.Visibility = Visibility.Collapsed; 
} 

See Also

In this article
Not finding the help you need? Improve this article