ShapeElement.OnBeforePaint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
OnBeforePaint is called at the start of the ShapeElement's painting. It provides an opportunity for developers to update and override resources before they're used in painting.
protected:
virtual void OnBeforePaint();
protected virtual void OnBeforePaint ();
abstract member OnBeforePaint : unit -> unit
override this.OnBeforePaint : unit -> unit
Protected Overridable Sub OnBeforePaint ()
Remarks
You can override existing resources by calling StyleSet.OverrideXXX and changing the specific setting that you would like.