InkToolbarCustomPen.CreateInkDrawingAttributesCore(Brush, Double) InkToolbarCustomPen.CreateInkDrawingAttributesCore(Brush, Double) InkToolbarCustomPen.CreateInkDrawingAttributesCore(Brush, Double) InkToolbarCustomPen.CreateInkDrawingAttributesCore(Brush, Double) Method

Definition

When overridden in a derived class, retrieves an InkDrawingAttributes object used to specify the ConfigurationContent for an InkToolbarCustomPen.

This method is not called by application code.

protected : virtual InkDrawingAttributes CreateInkDrawingAttributesCore(Brush brush, double strokeWidth)
virtual InkDrawingAttributes CreateInkDrawingAttributesCore(Brush brush, double strokeWidth) const;
protected virtual InkDrawingAttributes CreateInkDrawingAttributesCore(Brush brush, Double strokeWidth)
Protected Overridable Function CreateInkDrawingAttributesCore(brush As Brush, strokeWidth As Double) As InkDrawingAttributes

Parameters

brush
Brush Brush

The brush used to draw the stroke. The default is 0 (Black ).

strokeWidth
Double Double

The width of the stroke. The default is 0.

Returns

The attributes applied to the InkStroke when it is drawn.

Remarks

An InkToolbarCustomPenButton can reuse the standard InkToolbarPenConfigurationControl object to configure an optional settings flyout for the custom pen. An "extension glyph" is displayed on the button to indicate the existence of the flyout.

Derive from InkToolbarCustomPen and specify a custom InkToolbarPenConfigurationControl. Override the CreateInkDrawingAttributesCore method to change the default InkDrawingAttributes settings.

See also