Click or drag to resize
CanvasDeviceDebugLevel Property
Gets or sets the debug level for devices when they are created.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version:
public static CanvasDebugLevel DebugLevel { get; set; }

Property Value

Type: CanvasDebugLevel

This property is not retroactive. Modifying it won't affect devices which have already been created.

For any debug level other than None, Win2D will enable the Direct3D debug layer. Ensure that the Direct3D debug layer is available in environments where you test apps with CanvasDebugLevel options other than None.
On Windows 10, the debug layer is distributed as an optional Windows feature.

See Also