使用svg创建path

    <Window.Resources>
        <Geometry x:Key="Icon-Close">M512.725333 85.12c235.392 0 426.538667 191.146667 426.538667 426.581333s-191.146667 426.581333-426.538667 426.581334c-235.434667 0-426.581333-191.146667-426.581333-426.581334s191.146667-426.581333 426.581333-426.581333z m0 64c-200.106667 0-362.581333 162.474667-362.581333 362.581333s162.474667 362.581333 362.581333 362.581334 362.538667-162.474667 362.538667-362.581334-162.432-362.581333-362.538667-362.581333zM447.530667 350.293333l-138.88 139.050667a31.914667 31.914667 0 0 0 0 45.269333l138.837333 139.008a31.573333 31.573333 0 0 0 22.442667 9.258667 32.128 32.128 0 0 0 22.656-9.429333 31.914667 31.914667 0 0 0 0.128-45.098667L408.362667 544h285.568a32 32 0 0 0 0-64H408.362667l84.394666-84.437333a32.170667 32.170667 0 1 0-22.869333-54.442667c-8.106667 0-16.213333 3.029333-22.357333 9.173333z</Geometry>
    </Window.Resources>

    <StackPanel>
        <Path Width="15" Height="15" Stretch="Fill" Fill="#999999" Data="{StaticResource Icon-Close}"></Path>
    </StackPanel>

 

posted on 2023-12-19 11:14  学而时习  阅读(35)  评论(0编辑  收藏  举报