UpdateWindow.xaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <Window x:Class="GeekDesk.Control.Windows.UpdateWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:GeekDesk.Control.Windows"
  7. xmlns:hc="https://handyorg.github.io/handycontrol"
  8. mc:Ignorable="d"
  9. Height="460" Width="610"
  10. WindowStyle="None"
  11. AllowsTransparency="True"
  12. Title=""
  13. ResizeMode="NoResize"
  14. Background="Transparent" ShowInTaskbar="False"
  15. Focusable="True"
  16. KeyDown="OnKeyDown">
  17. <Grid Margin="20">
  18. <Grid.Effect>
  19. <DropShadowEffect BlurRadius="30" Direction="-90" Color="Gray"
  20. RenderingBias="Quality" ShadowDepth="2"/>
  21. </Grid.Effect>
  22. <Border CornerRadius="4" Background="White" BorderThickness="0" MouseDown="DragMove">
  23. <StackPanel HorizontalAlignment="Center">
  24. <hc:Card BorderThickness="0" Effect="{DynamicResource EffectShadow2}" Margin="20,20,20,0">
  25. <!--Card 的内容部分-->
  26. <Border CornerRadius="4,4,0,0">
  27. <StackPanel>
  28. <hc:SimplePanel VerticalAlignment="Center">
  29. <TextBlock Margin="10" x:Name="MsgTitle" TextWrapping="Wrap" FontSize="16" HorizontalAlignment="Left" Style="{DynamicResource TextBlockLargeBold}" Text="测试"/>
  30. <Button HorizontalAlignment="Right" Margin="0,0,10,0"
  31. Content="去点个Star" Click="StarBtnClick"
  32. Style="{StaticResource MyBtnStyle}"
  33. hc:IconElement.Geometry="M718.565517 863.126069c-7.344552 0-15.077517-2.189241-22.987034-6.285241L512 760.337655l-183.613793 96.503173c-18.785103 9.851586-37.499586 7.521103-48.16331-5.12-5.12-6.10869-10.557793-17.125517-7.485794-35.345656l35.063173-204.411586L159.249655 467.155862c-12.747034-12.393931-17.584552-27.153655-13.241379-40.430345 4.343172-13.312 16.913655-22.386759 34.568827-24.929103l205.223725-29.837242 91.806896-185.979586c7.874207-15.995586 20.409379-25.140966 34.392276-25.140965 13.947586 0 26.482759 9.145379 34.392276 25.140965l91.771586 185.979586 205.259035 29.837242c17.619862 2.577655 30.190345 11.652414 34.498206 24.964414 4.378483 13.27669-0.529655 28.001103-13.241379 40.430344l-148.51531 144.807725 35.063172 204.411586c3.10731 18.149517-2.365793 29.272276-7.485793 35.345655a32.273655 32.273655 0 0 1-25.176276 11.369931z"
  34. />
  35. </hc:SimplePanel>
  36. <hc:Divider LineStrokeDashArray="3,3" LineStroke="Black" Margin="20,0,20,0"/>
  37. <hc:ScrollViewer BorderThickness="0" Margin="0,5,1,5" Height="225">
  38. <StackPanel x:Name="MsgPanel">
  39. <TextBlock Width="430" FontSize="15" LineHeight="25" x:Name="Msg" TextWrapping="Wrap" VerticalAlignment="Center" Text="测试"/>
  40. </StackPanel>
  41. </hc:ScrollViewer>
  42. </StackPanel>
  43. </Border>
  44. <!--Card 的尾部部分-->
  45. <hc:Card.Footer>
  46. <StackPanel Margin="10" Width="520">
  47. <!--Card 的一级内容-->
  48. <TextBlock TextWrapping="NoWrap" x:Name="Title" Style="{DynamicResource TextBlockLargeBold}" TextTrimming="CharacterEllipsis"
  49. Text=""
  50. HorizontalAlignment="Left"/>
  51. <!--Card 的二级内容-->
  52. <TextBlock TextWrapping="NoWrap" x:Name="SubTitle" Style="{DynamicResource TextBlockDefault}" TextTrimming="CharacterEllipsis"
  53. Margin="0,6,0,0"
  54. HorizontalAlignment="Left"/>
  55. </StackPanel>
  56. </hc:Card.Footer>
  57. </hc:Card>
  58. <hc:UniformSpacingPanel Spacing="100" HorizontalAlignment="Center" Margin="0,10,0,0">
  59. <Button Style="{StaticResource MyBtnStyle}" Content="暂不更新" Click="Close_Click"/>
  60. <Button Style="{StaticResource MyBtnStyle}" Content="前往更新" Click="Confirm_Click"/>
  61. </hc:UniformSpacingPanel>
  62. </StackPanel>
  63. </Border>
  64. </Grid>
  65. </Window>