|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <Window
- x:Class="XHWK.WKTool.AppUpdateWin"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:Views="clr-namespace:Common.system"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:XHWK.WKTool"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- Title="AppUpdateWin"
- Width="480"
- Height="330"
- AllowsTransparency="True"
- Background="Transparent"
- MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
- ShowInTaskbar="False"
- Topmost="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
-
- <Grid>
- <Views:ZJClippingBorder
- Margin="0"
- Background="#fafafa"
- BorderBrush="#3f6fff"
- BorderThickness="1"
- CornerRadius="0">
-
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="44" />
- <RowDefinition Height="*" />
- <RowDefinition Height="64" />
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal">
- <Image
- Width="26"
- Margin="10,5,0,0"
- VerticalAlignment="Center"
- Source="/Images/APP.png" />
-
- <TextBlock
- Grid.Row="0"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- FontSize="24"
- Foreground="#333333"
- Text="应用更新" />
- </StackPanel>
- <ScrollViewer
- Name="content_sv"
- Grid.Row="1"
- Margin="10,10,10,10"
- HorizontalScrollBarVisibility="Disabled"
- VerticalScrollBarVisibility="Auto">
- <TextBlock
- x:Name="appmsg_tb"
- Margin="10,10,10,10"
- FontSize="14"
- Foreground="#333333"
- LineHeight="30"
- Text="{Binding appModel.versioncomm}" />
- </ScrollViewer>
-
- <UniformGrid
- x:Name="button_bottom"
- Grid.Row="2"
- Columns="2"
- Rows="1">
- <Button
- Grid.Row="7"
- Grid.ColumnSpan="2"
- Width="190"
- Height="42"
- Click="Button_Click"
- Content="取消"
- Cursor="Hand"
- FontSize="20"
- Foreground="White">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="0"
- CornerRadius="21">
- <Border.Background>#E9E9E9</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <Button
- Grid.Row="7"
- Grid.ColumnSpan="2"
- Width="190"
- Height="42"
- Click="gengxinClick"
- Content="更新"
- Cursor="Hand"
- FontSize="20"
- Foreground="White">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="0"
- CornerRadius="21">
- <Border.Background>#3f6fff</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </UniformGrid>
-
- <Grid
- x:Name="progress_sp"
- Grid.Row="1"
- Grid.RowSpan="2"
- Visibility="Collapsed">
- <StackPanel
- Height="Auto"
- VerticalAlignment="Center"
- Orientation="Vertical">
- <TextBlock
- x:Name="parogress_tb"
- Margin="10,10,10,10"
- HorizontalAlignment="Center"
- FontSize="23"
- Foreground="#333333"
- LineHeight="30"
- Text="正在更新,已下载0%" />
-
- <Views:ZJClippingBorder
- Height="12"
- Margin="20,20,20,20"
- CornerRadius="6"
- SnapsToDevicePixels="True">
- <ProgressBar
- x:Name="mprogress"
- BorderThickness="0"
- Foreground="#3f6fff"
- Maximum="100"
- Minimum="0" />
- </Views:ZJClippingBorder>
- </StackPanel>
- </Grid>
- </Grid>
- </Views:ZJClippingBorder>
- </Grid>
- </Window>
|