All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DateNavigator.ScrollToDate(DateTime) Method

Displays a specified date in the current DateNavigator view.

Namespace: DevExpress.Xpf.Editors.DateNavigator

Assembly: DevExpress.Xpf.Core.v20.2.dll

Declaration

public void ScrollToDate(
    DateTime date
)
Public Sub ScrollToDate(
    date As Date
)

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);
}

DateNavigator - ScrollToDate

See Also