123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
-
- <!--标题小图标-->
- <ControlTemplate x:Key="title_icon">
- <Viewbox>
- <Canvas Width="1024" Height="1024">
- <Path Fill="WhiteSmoke" Data="M512 958.017C266.08 958.017 65.983 757.952 65.983 512 65.983 266.08 266.08 65.983 512 65.983c245.952 0 446.017 200.065 446.017 446.017S757.952 958.017 512 958.017z m0-828.034c-210.656 0-382.017 171.36-382.017 382.017 0 210.625 171.36 382.017 382.017 382.017 210.625 0 382.017-171.36 382.017-382.017S722.625 129.983 512 129.983z"/>
- <Path Data="M464 304c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48zM512 768c-17.665 0-32-14.303-32-32V448c0-17.665 14.335-32 32-32s32 14.335 32 32v288c0 17.697-14.335 32-32 32z" Fill="#FFED7815"/>
- </Canvas>
- </Viewbox>
- </ControlTemplate>
- <!--最大化-->
- <ControlTemplate x:Key="maximize">
- <Viewbox>
- <Canvas Background="WhiteSmoke" Width="1024" Height="1024">
- <Path Fill="#FF4C4C4C" Data="M812.3 959.4H213.7c-81.6 0-148-66.4-148-148V212.9c0-81.6 66.4-148 148-148h598.5c81.6 0 148 66.4 148 148v598.5C960.3 893 893.9 959.4 812.3 959.4zM213.7 120.9c-50.7 0-92 41.3-92 92v598.5c0 50.7 41.3 92 92 92h598.5c50.7 0 92-41.3 92-92V212.9c0-50.7-41.3-92-92-92H213.7z"/>
- </Canvas>
- </Viewbox>
- </ControlTemplate>
- <!--恢复-->
- <ControlTemplate x:Key="unmaximize">
- <Viewbox>
- <Canvas Background="WhiteSmoke" Width="1024" Height="1024">
- <Path Fill="#FF4C4C4C" Data="M812.2 65H351.6c-78.3 0-142.5 61.1-147.7 138.1-77 5.1-138.1 69.4-138.1 147.7v460.6c0 81.6 66.4 148 148 148h460.6c78.3 0 142.5-61.1 147.7-138.1 77-5.1 138.1-69.4 138.1-147.7V213c0-81.6-66.4-148-148-148z m-45.8 746.3c0 50.7-41.3 92-92 92H213.8c-50.7 0-92-41.3-92-92V350.7c0-50.7 41.3-92 92-92h460.6c50.7 0 92 41.3 92 92v460.6z m137.8-137.7c0 47.3-35.8 86.3-81.8 91.4V350.7c0-81.6-66.4-148-148-148H260.2c5.1-45.9 44.2-81.8 91.4-81.8h460.6c50.7 0 92 41.3 92 92v460.7z"/>
- </Canvas>
- </Viewbox>
- </ControlTemplate>
- <!--关闭-->
- <ControlTemplate x:Key="close">
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="p1" Property="Path.Fill" Value="#FFDB4012"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="p1" Property="Path.Fill" Value="#FF4C4C4C"/>
- </Trigger>
- </ControlTemplate.Triggers>
- <Viewbox>
- <Canvas Background="WhiteSmoke" Width="1024" Height="1024">
- <Path x:Name="p1" Data="M601.376 512l191.52-191.52c28.096-28.096 30.976-71.168 6.4-95.744s-67.68-21.696-95.744 6.4l-191.52 191.52-191.52-191.52c-28.096-28.096-71.168-30.976-95.744-6.368s-21.696 67.68 6.4 95.744l191.52 191.52-191.52 191.52c-28.096 28.096-30.976 71.168-6.368 95.744s67.68 21.696 95.744-6.4l191.52-191.52 191.52 191.52c28.096 28.096 71.168 30.976 95.744 6.4s21.696-67.68-6.4-95.744l-191.52-191.52z"/>
- </Canvas>
- </Viewbox>
- </ControlTemplate>
- </ResourceDictionary>
|