答案 0 :(得分:-1)
试试这个,我是XAML-Code的图形。
<Viewbox>
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Name="Layer_1" Width="800" Height="600" Canvas.Left="0" Canvas.Top="0">
<Ellipse Width="513.333" Height="513.333" Canvas.Left="157.083" Canvas.Top="40.5834" Stretch="Fill" StrokeThickness="13.3333" StrokeLineJoin="Round" Stroke="#FF006695"/>
<Ellipse Width="125" Height="125" Canvas.Left="354.749" Canvas.Top="142" Stretch="Fill" StrokeThickness="5" StrokeLineJoin="Round" Stroke="#FF006695" Fill="#FF006695"/>
<Path Width="21.1536" Height="21.393" Canvas.Left="377.778" Canvas.Top="166.895" Stretch="Fill" StrokeThickness="1" StrokeLineJoin="Round" Stroke="#FF006695" Fill="#FFFFFFFF" Data="F1 M 396.481,169.055C 400.219,172.614 399.612,179.321 395.124,184.036C 390.635,188.75 383.966,189.688 380.228,186.129C 376.489,182.57 377.097,175.863 381.585,171.148C 386.073,166.433 392.742,165.496 396.481,169.055 Z "/>
<Path Width="16.05" Height="167" Canvas.Left="407.976" Canvas.Top="257" Stretch="Fill" StrokeThickness="15" StrokeLineJoin="Round" Stroke="#FF006695" Fill="#FFFFFFFF" Data="F1 M 416.526,264.5L 415.476,416.5L 416.526,264.5 Z "/>
<Ellipse Width="68" Height="15" Canvas.Left="381.25" Canvas.Top="410.5" Stretch="Fill" StrokeThickness="5" StrokeLineJoin="Round" Stroke="#FF006695" Fill="#FF006695"/>
</Canvas>
</Viewbox>
您可以根据需要自定义和优化代码,并创建自定义图钉。怎么做,你可以在MSDN的“添加自定义图钉”下找到 - &gt; https://msdn.microsoft.com/en-us/library/hh709044.aspx