Back to Devexpress

RibbonControl.ForceGraphicsInitialize() Method

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribboncontrol-c1cb24f9.md

latest1.9 KB
Original Source

RibbonControl.ForceGraphicsInitialize() Method

Calls the painting methods used to draw the current RibbonControl.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public void ForceGraphicsInitialize()
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
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

RibbonControl Class

RibbonControl Members

DevExpress.XtraBars.Ribbon Namespace