Category / Section
How to handle scrolling the Months in CalendarEdit control?
1 min read
How to handle scrolling the Months in CalendarEdit control?
To prevent changing the month using ScrollWheel, handle the ScrollWheel in CalendarEdit using PreviewMouseWheel event
The same has been explained in the following code example
XAML
<syncfusion:CalendarEdit HorizontalAlignment="Center" x:Name="_calendarEdit" VerticalAlignment="Center"/>
C#
public MainWindow() { InitializeComponent(); _calendarEdit.PreviewMouseWheel += _calendarEdit_PreviewMouseWheel; } void _calendarEdit_PreviewMouseWheel(object sender, MouseWheelEventArgs e) { e.Handled = true; }