Back to Devexpress

BackstageViewControl.UseDirectXPaint Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-backstageviewcontrol-c6cc276a.md

latest3.2 KB
Original Source

BackstageViewControl.UseDirectXPaint Property

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

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Appearance")]
public DefaultBoolean UseDirectXPaint { get; set; }
vb
<DXCategory("Appearance")>
<DefaultValue(DefaultBoolean.Default)>
Public Property UseDirectXPaint As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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:

NameDescriptionReturn 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+.

csharp
backstageViewControl1.UseDirectXPaint = DevExpress.Utils.DefaultBoolean.True;
vb
backstageViewControl1.UseDirectXPaint = DevExpress.Utils.DefaultBoolean.True

See Also

DirectX Hardware Acceleration

Project Settings Page

BackstageViewControl Class

BackstageViewControl Members

DevExpress.XtraBars.Ribbon Namespace