DateNavigator.ScrollToDate(DateTime) Method
Displays a specified date in the current DateNavigator view.
Namespace: DevExpress.Xpf.Editors.DateNavigator
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Parameters
Name | Type | Description |
---|---|---|
date | DateTime | The date to which DateNavigator should scroll. |
Remarks
<Window ...
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
<StackPanel>
<dxe:DateNavigator x:Name="dateNavigator" CalendarView="Month"/>
<Button Click="Button_Click"/>
</StackPanel>
</Window>
void Button_Click(object sender, RoutedEventArgs e) {
DateTime date = new DateTime(2018, 5, 24);
dateNavigator.ScrollToDate(date);
}
See Also