CanvasCreateResourcesReason Enumeration |
Indicates why a CreateResources event was raised.
Namespace:
Microsoft.Graphics.Canvas.UI
Assembly:
Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax public enum CanvasCreateResourcesReason
Members
| Member name | Value | Description |
---|
| FirstTime | 0 | First time resource creation. Everything must be created from scratch. |
| NewDevice | 1 | A new device has been created, to recover from a lost device error. All
graphics resources must be recreated, but other data (for example memory
buffers that were previously loaded from the filesystem) may be reused. |
| DpiChanged | 2 | The display DPI has changed.
Only resources that depend on DPI need to be recreated. |
Remarks See Also