CanvasControlClearColor Property |
Namespace: Microsoft.Graphics.Canvas.UI.Xaml
ClearColor defaults to transparent black, that is, Color.FromArgb(0,0,0,0).
Modifying ClearColor will cause the control to redraw, as if Invalidate() was called.
CanvasControl uses this ClearColor property instead of the Background property that is inherited from XAML UserControl, because Background can be set to any XAML brush object. It does not make sense to clear an immediate mode Win2D control using XAML content as the background, so CanvasControl ignores the XAML Background setting.