CanvasBackgroundPaintEventArgs

CanvasPaintEventArgsEventArgsReferences
Event arguments used for canvas background painting.

Constructors

CanvasBackgroundPaintEventArgs

#
public CanvasBackgroundPaintEventArgs(
canvas,
graphics,
skin
)

Properties

Canvas

Gets the canvas associated with this paint event.
public Canvas Canvas { get; }
inherited fromCanvasPaintEventArgs

DefaultOverridden

#
Gets whether the default background painting has been overridden.
public bool DefaultOverridden { get; }

Graphics

Gets the control graphics to use.
public ControlGraphics Graphics { get; }
inherited fromCanvasPaintEventArgs

Skin

Gets the skin associated with this paint cycle.
public Skin Skin { get; }
inherited fromCanvasPaintEventArgs

Methods

OverrideDefaultPainting

#
Override the default painting. Call this method if your event handler drew a custom background and you do not want the canvas to paint the default grid on top.
public void OverrideDefaultPainting()