Articles in this section
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;
        }

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied