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

DateNavigator.AutoSize Property

Gets or sets whether the control’s size is determined by its content, i.e., by the number and layout of displayed months.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

[DefaultValue(false)]
public override bool AutoSize { get; set; }

#Property Value

Type Default Description
Boolean false

True to set the control dimensions to display the month grid as specified by the CalendarControlBase.RowCount and CalendarControlBase.ColumnCount properties; otherwise, false.

#Remarks

The AutoSize property specifies whether the number of months displayed in the DateNavigator control and their layout are changed when the control is resized.

If the AutoSize is set to false (default), the control automatically calculates the number of months to display, and their layout. When the control is resized, the number of displayed months can change.

If the AutoSize is set to true, the control’s size is calculated to best fit the grid composed of months arranged in CalendarControlBase.RowCount rows and CalendarControlBase.ColumnCount columns. When the control is resized, the layout of months and their number do not change.

See Also