WPF是否提供默认图标?

时间:2014-01-14 05:10:46

标签: wpf icons

Visual Studio或Google Chrome(Windows 8)使用相同的图标(最小化,最大化,关闭窗口) WPF是否提供这些图标?如何在WPF中使用它来制作Label控件的内容?

2 个答案:

答案 0 :(得分:1)

enter image description here

 <Geometry x:Key="closeGeometry">
    F1 M 151,217L 152,217L 154.5,219.5L 157,217L 158,217L 158,218L 155.5,220.5L 158,223L 158,224L 157,224L 154.5,221.5L 152,224L 151,224L 151,223L 153.5,220.5L 151,218L 151,217 Z
</Geometry>
<Geometry x:Key="minimizeGeometry">
    M0,0 L8,0 8,1 8,2 0,2 0,1 z
</Geometry>
<Geometry x:Key="maximizeGeometry">
    F1 M 34,17L 43,17L 43,23L 34,23L 34,17 Z M 35,19L 35,22L 42,22L 42,19L 35,19 Z
</Geometry>
<Geometry x:Key="restoreGeometry">
    M1,4.9996096 L1,7.000219 7,6.999219 7,5.001 2,5.001 2,4.9996096 z M3,2.0014141 L3,3.0000001 8,3.0000001 8,4.0000001 8,4.0008045 9,4.0008045 9,2.0014141 z M2,0 L10,0 10,0.0010234118 10,1.0000001 10,5.001 8,5.001 8,7.9990235 0,8.0000239 0,4.0000001 0,3.0009998 0,3.0000001 2,3.0000001 2,1.0000001 2,0.0010234118 z
</Geometry>

我认为你在寻找这个。如果它是利用它..

答案 1 :(得分:0)

您可以使用charmap选择图标

<StackPanel Orientation="Horizontal">
    <TextBlock Name="Restore" Text="&#xE0A4;" FontFamily="Segoe UI Symbol" Foreground="Black" FontSize="14"></TextBlock>
    <TextBlock Name="Minimize" Text="&#x2B12;" FontFamily="Segoe UI Symbol" Foreground="Black" FontSize="14" Margin="10,0,0,0"></TextBlock>
    <TextBlock Name="Close" Text="&#x2581;" FontFamily="Segoe UI Symbol" Foreground="Black" FontSize="14" Margin="10,0,0,0"></TextBlock> 
</StackPanel>

有关详细信息,请访问此Windows Store Apps: Change the icon of an AppBar Button?