Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CalendarHitInfo.IsInNavigationButton() Method

Gets whether the test point is located in the calendar navigation button.

Namespace: DevExpress.XtraEditors.Calendar

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public bool IsInNavigationButton()

#Returns

Type Description
Boolean

true if the test point is located in the calendar footer; otherwise, false.

#Remarks

The example below demonstrates how to determine whether the DateNavigator control’s navigation button was clicked.

private void dateNavigator1_MouseClick(object sender, MouseEventArgs e) {
    CalendarHitInfo newHitInfo = dateNavigator1.GetHitInfo(e);
    if(newHitInfo.IsInNavigationButton()) {
        //Do something.
    }
}
See Also