RibbonControl.ForceGraphicsInitialize() Method

Calls the painting methods used to draw the current RibbonControl.

Namespace: DevExpress.XtraBars.Ribbon

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[Browsable(false)]
public void ForceGraphicsInitialize()
<Browsable(False)>
Public Sub 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