Skip to main content
All docs
V25.1
  • BackstageViewControl.UseDirectXPaint Property

    Gets or sets whether DirectX is used to render the Backstage View.

    Namespace: DevExpress.XtraBars.Ribbon

    Assembly: DevExpress.XtraBars.v25.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    [DefaultValue(DefaultBoolean.Default)]
    [DXCategory("Appearance")]
    public DefaultBoolean UseDirectXPaint { get; set; }

    Property Value

    Type Default Description
    DefaultBoolean Default

    True to use DirectX; False to use GDI+; Default to use the default engine. The default engine is DirectX if the Use DirectX option is enabled in the Project settings; otherwise, the default engine is GDI+.

    Available values:

    Name Description Return Value
    True

    The value is true.

    0

    False

    The value is false.

    1

    Default

    The value is specified by a global option or a higher-level object.

    2

    Remarks

    You can enable the Use DirectX option in the Project Settings to use DirectX Hardware Acceleration for all compatible DevExpress controls in the application.

    The UseDirectXPaint property allows you to specify the draw engine for an individual Backstage View. This property value takes a priority over the global option specified in the Project Settings. If this property is set to Default, the application uses the default engine. The default engine is DirectX if the Use DirectX option is enabled in the Project settings; otherwise, the default engine is GDI+.

    backstageViewControl1.UseDirectXPaint = DevExpress.Utils.DefaultBoolean.True;
    
    See Also