|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <Window
- x:Class="BPASmartClient.Update.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.Update"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="Update"
- Width="600"
- Height="400"
- mc:Ignorable="d">
-
- <Window.DataContext>
- <local:MainViewsModel />
- </Window.DataContext>
-
- <Grid Margin="20">
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition Height="40" />
- <RowDefinition />
- <RowDefinition Height="80" />
- <RowDefinition Height="40" />
- </Grid.RowDefinitions>
-
- <TextBlock Grid.Row="0" Text="{Binding um.Version, StringFormat=当前软件版本号:\{0\}}" />
- <TextBlock Grid.Row="1" Text="{Binding um.UpgradeVersion, StringFormat=更新软件版本号:\{0\}}" />
- <TextBlock
- Grid.Row="2"
- Text="{Binding um.UpdateDescription}"
- TextWrapping="Wrap" />
-
- <Grid
- Name="grProgressbar"
- Grid.Row="3"
- Margin="0,0,0,20">
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock
- Name="tb"
- VerticalAlignment="Bottom"
- Text="当前更新进度:1/4" />
- <ProgressBar
- Name="progressbar"
- Grid.Row="1"
- Height="15"
- VerticalAlignment="Center"
- Maximum="100"
- Minimum="0"
- Value="10" />
- </Grid>
-
- <Grid Grid.Row="4">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Button
- Name="cancel"
- Grid.Column="0"
- Width="100"
- Background="DeepSkyBlue"
- BorderThickness="0"
- Click="cancel_Click"
- Content="取消更新"
- Foreground="#272727" />
- <Button
- Name="ok"
- Grid.Column="1"
- Width="100"
- Background="DeepSkyBlue"
- BorderThickness="0"
- Click="ok_Click"
- Content="开始更新"
- Foreground="#272727" />
- </Grid>
-
- </Grid>
- </Window>
|