终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

69 lines
2.4 KiB

  1. <Window
  2. x:Class="BPASmartClient.Update.MainWindow"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.Update"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. Title="Update"
  9. Width="600"
  10. Height="400"
  11. mc:Ignorable="d">
  12. <Window.DataContext>
  13. <local:MainViewsModel />
  14. </Window.DataContext>
  15. <Grid Margin="20">
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="40" />
  18. <RowDefinition Height="40" />
  19. <RowDefinition />
  20. <RowDefinition Height="80"/>
  21. <RowDefinition Height="40" />
  22. </Grid.RowDefinitions>
  23. <TextBlock Grid.Row="0" Text="{Binding um.Version, StringFormat=当前软件版本号:\{0\}}" />
  24. <TextBlock Grid.Row="1" Text="{Binding um.UpgradeVersion, StringFormat=更新软件版本号:\{0\}}" />
  25. <TextBlock
  26. Grid.Row="2"
  27. Text="{Binding um.UpdateDescription}"
  28. TextWrapping="Wrap" />
  29. <Grid Name="grProgressbar" Margin="0 0 0 20" Grid.Row="3">
  30. <Grid.RowDefinitions>
  31. <RowDefinition/>
  32. <RowDefinition/>
  33. </Grid.RowDefinitions>
  34. <TextBlock Name="tb" Text="当前更新进度:1/4" VerticalAlignment="Bottom"/>
  35. <ProgressBar Name="progressbar" Grid.Row="1" Height="15" VerticalAlignment="Center" Minimum="0" Maximum="100" Value="10"/>
  36. </Grid>
  37. <Grid Grid.Row="4">
  38. <Grid.ColumnDefinitions>
  39. <ColumnDefinition />
  40. <ColumnDefinition />
  41. </Grid.ColumnDefinitions>
  42. <Button
  43. Name="cancel"
  44. Grid.Column="0"
  45. Width="100"
  46. Background="DeepSkyBlue"
  47. Click="cancel_Click"
  48. BorderThickness="0"
  49. Content="取消更新"
  50. Foreground="#272727" />
  51. <Button
  52. Name="ok"
  53. Grid.Column="1"
  54. Width="100"
  55. Click="ok_Click"
  56. Background="DeepSkyBlue"
  57. BorderThickness="0"
  58. Content="开始更新"
  59. Foreground="#272727" />
  60. </Grid>
  61. </Grid>
  62. </Window>