Articles in this section
Category / Section

How to Navigate in MonthView using AlphaKeys in DateTimeEdit?

1 min read

Month selection in DropDown MonthView of DateTimeEdit can be changed by pressing Alpha keys. Month selection based on the key pressed and Month name first character. It can be achieved by setting EnableAlphaKeyNavigation property as True.

 

Ex: January month will be selected if alpha key ‘J’ pressed and June month will be selected if we press ‘J’ again.

 

The same has been explained in the following code snippet:

XAML:

// Code Explains How to use AlphakeyNavigation property for DateTimeEdit
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf" x:Class="WpfApplication4.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syncfusion:DateTimeEdit Name="DateTimeEdit" Width="150" Height="80"   EnableAlphaKeyNavigation="True"/>
</Grid>
</Window>

C#:

//Code Explains How to use AlphakeyNavigation property for DateTimeEdit
namespace WpfApplication4
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
DateTimeEdit.EnableAlphaKeyNavigation = 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