Click or drag to resize
CanvasCreateResourcesReason Enumeration
Indicates why a CreateResources event was raised.

Namespace:  Microsoft.Graphics.Canvas.UI
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version:
public enum CanvasCreateResourcesReason
  Member nameValueDescription
FirstTime0First time resource creation. Everything must be created from scratch.
NewDevice1A 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.
DpiChanged2The display DPI has changed. Only resources that depend on DPI need to be recreated.
For more information about why resources may need to be recreated, see the articles Handling device lost and DPI.
See Also