|
- <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" Margin="0 0 0 20" Grid.Row="3">
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <TextBlock Name="tb" Text="当前更新进度:1/4" VerticalAlignment="Bottom"/>
- <ProgressBar Name="progressbar" Grid.Row="1" Height="15" VerticalAlignment="Center" Minimum="0" Maximum="100" Value="10"/>
- </Grid>
-
- <Grid Grid.Row="4">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Button
- Name="cancel"
- Grid.Column="0"
- Width="100"
- Background="DeepSkyBlue"
- Click="cancel_Click"
- BorderThickness="0"
- Content="取消更新"
- Foreground="#272727" />
- <Button
- Name="ok"
- Grid.Column="1"
- Width="100"
- Click="ok_Click"
- Background="DeepSkyBlue"
- BorderThickness="0"
- Content="开始更新"
- Foreground="#272727" />
- </Grid>
-
- </Grid>
- </Window>
|