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

RibbonControl.ForceGraphicsInitialize() Method

In This Article

Calls the painting methods used to draw the current RibbonControl.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public void ForceGraphicsInitialize()

#Remarks

Methods that draw a RibbonControl component take much longer to execute on the first call. Subsequent graphics method calls are performed much faster. If you’re experiencing certain issues with a delay in drawing RibbonControl (especially within maximized forms), call the non-browsable ForceGraphicsInitialize method right after the form’s InitializeComponent method. This will call the RibbonControl drawing methods for the first time before a form is displayed, so they will run significantly faster when a RibbonControl is shown.

See Also