WndUpdateAsk.xaml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <Window x:Class="MV485.Upgrade.WndUpdateAsk"
  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:zdfflatui="clr-namespace:ZdfFlatUI;assembly=WPF.UI"
  7. mc:Ignorable="d"
  8. BorderThickness="1"
  9. BorderBrush="#999999"
  10. ResizeMode="CanMinimize"
  11. WindowStyle="None"
  12. Background="WhiteSmoke"
  13. ShowInTaskbar="False"
  14. WindowStartupLocation="CenterOwner"
  15. Title="WndUpdateAsk" Height="420" Width="500">
  16. <Window.Resources>
  17. <PathGeometry x:Key="close" Figures="M1024 960l-64-0.64-448-447.36-448 447.36-64 0.64v-64l448-448-448-448v-64h64l448 448 448-448h64v64l-448 448 448 448v64z" />
  18. </Window.Resources>
  19. <Viewbox Stretch="Fill">
  20. <Grid Height="420" Width="500">
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="35" />
  23. <RowDefinition Height="*" />
  24. <RowDefinition Height="60" />
  25. </Grid.RowDefinitions>
  26. <Border Grid.Row="0" Background="#EFF2F6" MouseDown="Border_MouseDown">
  27. <Grid>
  28. <StackPanel VerticalAlignment="Center" Orientation="Horizontal" Margin="5 0 0 0">
  29. <Image Source="/MV485;component/Assest/newVersion.png" Width="30" Height="30" Stretch="Fill" Margin="0 0 2 0" />
  30. <TextBlock x:Name="txtNewVersion" Text="发现新版本" FontSize="16" VerticalAlignment="Center" />
  31. </StackPanel>
  32. <zdfflatui:PathTextButton x:Name="btnClose" Margin="0 0 10 0" Background="Transparent" HorizontalAlignment="Right"
  33. Orientation="Horizontal" Foreground="Red" MouseOverForeground="Blue" PathWidth="15"
  34. PathData="{StaticResource close}" Click="BtnClose_Click"
  35. ContentMargin="0,0,0,0" IsEnabled="True" VerticalAlignment="Center" />
  36. </Grid>
  37. </Border>
  38. <Border Grid.Row="1" Margin="10" BorderThickness="1" BorderBrush="#C7C7C7" Background="White">
  39. <ScrollViewer>
  40. <TextBlock x:Name="txtInfo" Text="版本2021.12.10.1更新内容" FontSize="20"
  41. FontFamily="宋体" Margin="5" TextWrapping="Wrap" />
  42. </ScrollViewer>
  43. </Border>
  44. <StackPanel x:Name="pnlUpdate" Grid.Row="2" Margin="0 0 0 0" VerticalAlignment="Center"
  45. HorizontalAlignment="Right" Orientation="Horizontal" Visibility="Visible">
  46. <zdfflatui:FlatButton x:Name="btnIgnore" Content="忽略这次更新"
  47. Width="150" Height="40" FontSize="16" Margin="0 0 20 0"
  48. Background="White" Foreground="Black" Click="BtnIgnore_Click" />
  49. <zdfflatui:FlatButton x:Name="btnUpdate" Content="立即更新"
  50. Width="150" Height="40" FontSize="16" Margin="0 0 20 0"
  51. Background="#1AAD19" Foreground="White" Click="BtnUpdate_Click" />
  52. </StackPanel>
  53. <StackPanel x:Name="pnlProgress" Grid.Row="2" VerticalAlignment="Center" Visibility="Collapsed"
  54. HorizontalAlignment="Left" Margin="10 0 0 0" Orientation="Vertical">
  55. <TextBlock x:Name="txtProgress" Text="已下载1%" VerticalAlignment="Center"
  56. HorizontalAlignment="Left" FontSize="14" Margin="0 0 0 5" />
  57. <ProgressBar x:Name="downProgress" Minimum="0" Maximum="100" Width="580" Height="20" Background="White"/>
  58. </StackPanel>
  59. </Grid>
  60. </Viewbox>
  61. </Window>