PathIcon.Data Property
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.
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:
property Geometry ^ Data { Geometry ^ get(); void set(Geometry ^ value); };
Geometry Data();
void Data(Geometry value);
public Geometry Data { get; set; }
var geometry = pathIcon.data;
pathIcon.data = geometry;
Public Property Data As Geometry
<PathIcon>
<PathIcon.Data>
singleGeometry
</PathIcon.Data>
</PathIcon>
- or -
<PathIcon Data="moveAndDrawCommands"/>
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>
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for