PathIcon.Data PathIcon.Data PathIcon.Data PathIcon.Data Property

Definition

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.

public : Geometry Data { get; set; }
Geometry Data();

void Data(Geometry data);
public Geometry Data { get; set; }
Public ReadWrite Property Data As Geometry
<PathIcon>
  <PathIcon.Data>
    singleGeometry
  </PathIcon.Data>
</PathIcon>

Property Value

A description of the shape to be drawn.

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