UpdateWindow.xaml 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. Background="Transparent" ShowInTaskbar="False"
  14. Focusable="True"
  15. KeyDown="OnKeyDown">
  16. <Grid Margin="20">
  17. <Grid.Effect>
  18. <DropShadowEffect BlurRadius="30" Direction="-90" Color="Gray"
  19. RenderingBias="Quality" ShadowDepth="2"/>
  20. </Grid.Effect>
  21. <Border CornerRadius="4" Background="White" BorderThickness="0" MouseDown="DragMove">
  22. <StackPanel HorizontalAlignment="Center">
  23. <hc:Card BorderThickness="0" Effect="{DynamicResource EffectShadow2}" Margin="20,20,20,0">
  24. <!--Card 的内容部分-->
  25. <Border CornerRadius="4,4,0,0">
  26. <StackPanel>
  27. <hc:SimplePanel VerticalAlignment="Center">
  28. <TextBlock Margin="10" x:Name="MsgTitle" TextWrapping="Wrap" FontSize="16" HorizontalAlignment="Left" Style="{DynamicResource TextBlockLargeBold}" Text="测试"/>
  29. <Button HorizontalAlignment="Right" Margin="0,0,10,0"
  30. Content="去点个Star" Click="StarBtnClick"
  31. Style="{StaticResource Btn1}"
  32. 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"
  33. />
  34. </hc:SimplePanel>
  35. <hc:Divider LineStrokeDashArray="3,3" LineStroke="Black" Margin="20,0,20,0"/>
  36. <hc:ScrollViewer BorderThickness="0" Margin="0,5,1,5" Height="225">
  37. <StackPanel x:Name="MsgPanel">
  38. <TextBlock Width="430" FontSize="15" LineHeight="25" x:Name="Msg" TextWrapping="Wrap" VerticalAlignment="Center" Text="测试"/>
  39. </StackPanel>
  40. </hc:ScrollViewer>
  41. </StackPanel>
  42. </Border>
  43. <!--Card 的尾部部分-->
  44. <hc:Card.Footer>
  45. <StackPanel Margin="10" Width="520">
  46. <!--Card 的一级内容-->
  47. <TextBlock TextWrapping="NoWrap" x:Name="Title" Style="{DynamicResource TextBlockLargeBold}" TextTrimming="CharacterEllipsis"
  48. Text=""
  49. HorizontalAlignment="Left"/>
  50. <!--Card 的二级内容-->
  51. <TextBlock TextWrapping="NoWrap" x:Name="SubTitle" Style="{DynamicResource TextBlockDefault}" TextTrimming="CharacterEllipsis"
  52. Margin="0,6,0,0"
  53. HorizontalAlignment="Left"/>
  54. </StackPanel>
  55. </hc:Card.Footer>
  56. </hc:Card>
  57. <hc:UniformSpacingPanel Spacing="100" HorizontalAlignment="Center" Margin="0,10,0,0">
  58. <Button Content="暂不更新" Click="Close_Click" Style="{StaticResource Btn1}"/>
  59. <Button Content="前往更新" Click="Confirm_Click" Style="{StaticResource Btn1}"/>
  60. </hc:UniformSpacingPanel>
  61. </StackPanel>
  62. </Border>
  63. </Grid>
  64. </Window>