Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.84 KB

pathicon_data.md

File metadata and controls

52 lines (39 loc) · 1.84 KB
-api-id -api-type
P:Windows.UI.Xaml.Controls.PathIcon.Data
winrt property

Windows.UI.Xaml.Controls.PathIcon.Data

-description

Gets or sets a Geometry that specifies the shape to be drawn. In XAML. this can also be set using a string that describes Move and draw commands syntax.

-xaml-syntax

<PathIcon>
  <PathIcon.Data>
    singleGeometry
  </PathIcon.Data>
</PathIcon>
- or -
<PathIcon Data="moveAndDrawCommands"/>

-xaml-values

singleGeometry
singleGeometryA single object element that derives from Geometry. This can be one of the following: One of the simple geometries EllipseGeometry, LineGeometry, or RectangleGeometry.A single GeometryGroup, which supports other geometries as child elements. A PathGeometry, which supports child object elements that establish a path geometry object model of figures and segments. See the "XAML Values" section of PathGeometry.
moveAndDrawCommands
moveAndDrawCommandsThis is a complex syntax that cannot be adequately summarized here. See Move and draw commands syntax.
## -property-value A description of the shape to be drawn.

-remarks

-examples

This example shows an AppBarButton with a PathIcon.

<!-- App bar button with path icon. -->
<AppBarButton Label="PathIcon" Click="AppBarButton_Click">
    <AppBarButton.Icon>
        <PathIcon Data="F1 M 16,12 20,2L 20,16 1,16" HorizontalAlignment="Center"/>
    </AppBarButton.Icon>
</AppBarButton>

-see-also

Path.Data, AppBar, Move and draw commands syntax