Skip to main content

RibbonControl.ForceGraphicsInitialize() Method

Calls the painting methods used to draw the current RibbonControl.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v24.1.dll

NuGet Package: DevExpress.Win.Navigation


public void ForceGraphicsInitialize()


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