Alarm.xaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <!--标题小图标-->
  4. <ControlTemplate x:Key="title_icon">
  5. <Viewbox>
  6. <Canvas Width="1024" Height="1024">
  7. <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"/>
  8. <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"/>
  9. </Canvas>
  10. </Viewbox>
  11. </ControlTemplate>
  12. <!--最大化-->
  13. <ControlTemplate x:Key="maximize">
  14. <Viewbox>
  15. <Canvas Background="WhiteSmoke" Width="1024" Height="1024">
  16. <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"/>
  17. </Canvas>
  18. </Viewbox>
  19. </ControlTemplate>
  20. <!--恢复-->
  21. <ControlTemplate x:Key="unmaximize">
  22. <Viewbox>
  23. <Canvas Background="WhiteSmoke" Width="1024" Height="1024">
  24. <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"/>
  25. </Canvas>
  26. </Viewbox>
  27. </ControlTemplate>
  28. <!--关闭-->
  29. <ControlTemplate x:Key="close">
  30. <ControlTemplate.Triggers>
  31. <Trigger Property="IsMouseOver" Value="True">
  32. <Setter TargetName="p1" Property="Path.Fill" Value="#FFDB4012"/>
  33. </Trigger>
  34. <Trigger Property="IsMouseOver" Value="False">
  35. <Setter TargetName="p1" Property="Path.Fill" Value="#FF4C4C4C"/>
  36. </Trigger>
  37. </ControlTemplate.Triggers>
  38. <Viewbox>
  39. <Canvas Background="WhiteSmoke" Width="1024" Height="1024">
  40. <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"/>
  41. </Canvas>
  42. </Viewbox>
  43. </ControlTemplate>
  44. </ResourceDictionary>