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

RibbonPageCategory.AutoStretchPageHeaders Property

Gets or sets whether the page headers are stretched to occupy the entire width of a custom category caption.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public bool AutoStretchPageHeaders { get; set; }

#Property Value

Type Default Description
Boolean false

true if page headers are stretched to fit the current custom category’s caption; otherwise, false.

#Remarks

If the AutoStretchPageHeaders property is set to false and the total page header width is less than the category caption width, an empty space can appear to the right of the page headers, as shown in the following image:

RibbonPageCategory_AutoStretchPageHeaders_False

To ensure that page headers fit the page category caption width, set the AutoStretchPageHeaders property to true:

RibbonPageCategory_AutoStretchPageHeaders_True

See Also