终端一体化运控平台
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

82 строки
2.6 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
  30. Name="grProgressbar"
  31. Grid.Row="3"
  32. Margin="0,0,0,20">
  33. <Grid.RowDefinitions>
  34. <RowDefinition />
  35. <RowDefinition />
  36. </Grid.RowDefinitions>
  37. <TextBlock
  38. Name="tb"
  39. VerticalAlignment="Bottom"
  40. Text="当前更新进度:1/4" />
  41. <ProgressBar
  42. Name="progressbar"
  43. Grid.Row="1"
  44. Height="15"
  45. VerticalAlignment="Center"
  46. Maximum="100"
  47. Minimum="0"
  48. Value="10" />
  49. </Grid>
  50. <Grid Grid.Row="4">
  51. <Grid.ColumnDefinitions>
  52. <ColumnDefinition />
  53. <ColumnDefinition />
  54. </Grid.ColumnDefinitions>
  55. <Button
  56. Name="cancel"
  57. Grid.Column="0"
  58. Width="100"
  59. Background="DeepSkyBlue"
  60. BorderThickness="0"
  61. Click="cancel_Click"
  62. Content="取消更新"
  63. Foreground="#272727" />
  64. <Button
  65. Name="ok"
  66. Grid.Column="1"
  67. Width="100"
  68. Background="DeepSkyBlue"
  69. BorderThickness="0"
  70. Click="ok_Click"
  71. Content="开始更新"
  72. Foreground="#272727" />
  73. </Grid>
  74. </Grid>
  75. </Window>