Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.65 KB

shape_stroke.md

File metadata and controls

41 lines (31 loc) · 1.65 KB
-api-id -api-type
P:Microsoft.UI.Xaml.Shapes.Shape.Stroke
winrt property

Microsoft.UI.Xaml.Shapes.Shape.Stroke

-description

Gets or sets the Brush that specifies how the Shape outline is painted.

-xaml-syntax

<shape Stroke="{StaticResource resourceName}"/>
- or -
<shape Stroke="colorString"/>
- or -
<shape>
  <shape.Stroke>singleBrush</shape.Stroke>
</shape>

-xaml-values

resourceName
resourceNameThe resource name (x:Key attribute value) of an existing XAML resource that defines a brush. This is the recommended way to specify Brush values in XAML if you have any intention of using the same colors or brushes in more than one part of your UI. See Remarks in Brush or ResourceDictionary and XAML resource references.
colorString
colorStringThe Color for a SolidColorBrush expressed as an attribute string. This can be a named color, an RGB value, or an ScRGB value. RGB or ScRGB may also specify alpha information. See the XAML Values section in Color.
singleBrush
singleBrushWithin opening and closing property elements, exactly one object element for an object that derives from Brush. This is typically one of the following classes: LinearGradientBrush, ImageBrush, SolidColorBrush.
## -property-value A [Brush](../microsoft.ui.xaml.media/brush.md) that specifies how the [Shape](shape.md) outline is painted. The default is null.

-remarks

-examples

-see-also

Fill, XAML brushes