|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- <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:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:views="clr-namespace:Common.system"
- 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:ZClippingBorder
- 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
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- FontSize="24"
- Foreground="#333333"
- Text="应用更新" />
- </StackPanel>
- <ScrollViewer
- Name="ContentSv"
- Grid.Row="1"
- Margin="10,10,10,10"
- HorizontalScrollBarVisibility="Disabled"
- VerticalScrollBarVisibility="Auto">
- <TextBlock
- x:Name="AppmsgTb"
- Margin="10,10,10,10"
- FontSize="14"
- Foreground="#333333"
- LineHeight="30"
- Text="{Binding appModel.versioncomm}" />
- </ScrollViewer>
-
- <UniformGrid
- x:Name="ButtonBottom"
- Grid.Row="2"
- Columns="2"
- Rows="1">
- <Button
- 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
- 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="ProgressSp"
- Grid.Row="1"
- Grid.RowSpan="2"
- Visibility="Collapsed">
- <StackPanel
- Height="Auto"
- VerticalAlignment="Center"
- Orientation="Vertical">
- <TextBlock
- x:Name="ParogressTb"
- Margin="10,10,10,10"
- HorizontalAlignment="Center"
- FontSize="23"
- Foreground="#333333"
- LineHeight="30"
- Text="正在更新,已下载0%" />
-
- <views:ZClippingBorder
- Height="12"
- Margin="20,20,20,20"
- CornerRadius="6"
- SnapsToDevicePixels="True">
- <ProgressBar
- x:Name="Mprogress"
- BorderThickness="0"
- Cursor=""
- Foreground="#3f6fff"
- Maximum="100"
- Minimum="0" />
- </views:ZClippingBorder>
- </StackPanel>
- </Grid>
- </Grid>
- </views:ZClippingBorder>
- </Grid>
- </Window>
|