InkToolbarCustomPen.CreateInkDrawingAttributesCore(Brush, Double) 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.
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) = CreateInkDrawingAttributesCore;
InkDrawingAttributes CreateInkDrawingAttributesCore(Brush const& brush, double const& strokeWidth);
protected virtual InkDrawingAttributes CreateInkDrawingAttributesCore(Brush brush, double strokeWidth);
function createInkDrawingAttributesCore(brush, strokeWidth)
Protected Overridable Function CreateInkDrawingAttributesCore (brush As Brush, strokeWidth As Double) As InkDrawingAttributes
Parameters
- 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.
Applies to
See also
- InkDrawingAttributes
- InkDrawingAttributesChanged
- CreateInkDrawingAttributes(Brush, Double)
- Pen and stylus interactions
- Add an InkToolbar to a Universal Windows Platform (UWP) app
- Get Started Tutorial: Support ink in your UWP app
- Ink sample (JavaScript)
- Get Started Tutorial: Support ink in your UWP app
- Coloring book sample
- Family notes sample