Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXWindow.AllowChangeRenderMode Property

Gets or sets whether the DXWindow enables software rendering during window resizing to avoid flickering on some video cards.

Namespace: DevExpress.Xpf.Core

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public bool AllowChangeRenderMode { get; set; }

#Property Value

Type Description
Boolean

true, if the DXWindow manipulates the HwndTarget.RenderMode property to avoid window flickering; otherwise, false. The default value is true.

#Remarks

In hardware rendering mode, a flickering effect can appear on some video cards while resizing the DXWindow. If the AllowChangeRenderMode is set to true, the DXWindow automatically changes the HwndTarget.RenderMode to RenderMode.SoftwareOnly to avoid flickering. The DXWindow changes this value when window resizing starts and resets to its previous value when resizing is finished. To prevent the HwndTarget.RenderMode property from being manipulated by the DXWindow on window resizing, you can set the AllowChangeRenderMode property to false.

See Also