|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <Window x:Class="XHWK.WKTool.UploadWindow"
- 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:local="clr-namespace:XHWK.WKTool" xmlns:Views="clr-namespace:XHWK.WKTool.Helpers"
- mc:Ignorable="d"
- Title="UploadWindow" Height="346" Width="457" AllowsTransparency="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None" Loaded="Window_Loaded" Margin="0" BorderThickness="7">
- <Window.Effect>
- <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
- </Window.Effect>
- <Viewbox>
- <Grid Height="341" Width="454" >
- <!--分4行-->
- <Grid.RowDefinitions>
- <RowDefinition Height="45"/>
- <RowDefinition Height="30"/>
- <RowDefinition Height="90"/>
- <RowDefinition Height="90"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <!--第一行 标题-->
- <Grid x:Name="GridTitle" Visibility="Visible" Grid.Row="0" Margin="-1,0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown">
- <TextBlock Text="上传" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
- <Button Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
- </Grid>
- <Grid x:Name="GridTitle_Black" Visibility="Collapsed" Grid.Row="0" Margin="0,0" Background="#FFE9E9E9" MouseLeftButtonDown="Window_MouseLeftButtonDown">
- <TextBlock Text="上传" Foreground="#FF333333" FontSize="16" Padding="10,13,0,0"/>
- <Button Cursor="Hand" Grid.Row="0" x:Name="btnDown_Black" Content="×" Foreground="#FF333333" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
- </Grid>
- <!--第三行 教材-->
- <ComboBox Cursor="Hand"
- x:Name="book_list"
- Grid.Row="2"
- Height="50"
- Width="400"
- Margin="0,0,0,0"
- Padding="10,0,0,0"
- VerticalContentAlignment="Center"
- DisplayMemberPath="Value"
- FontSize="18"
- ItemsSource="{Binding bookList}"
- SelectedValuePath="Key"
- SelectionChanged="toolbar_list_SelectionChanged" BorderBrush="#FFCDD6E0" Foreground="Black" Background="White"
- >
- <ComboBox.Resources>
- <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="White" />
- <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Gray" />
- </ComboBox.Resources>
- </ComboBox>
- <!--章节-->
- <ComboBox Cursor="Hand"
- x:Name="cmbTeachingMaterial"
- Grid.Row="3"
- Height="50"
- Width="400"
- Padding="10,0,0,0"
- VerticalContentAlignment="Center"
-
- DisplayMemberPath="Value"
- FontSize="18"
- Foreground="Black"
- ItemsSource="{Binding zhangjieList}"
- SelectedValuePath="Key" BorderBrush="#FFCDD6E0" >
- <ComboBox.Resources>
- <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="White" />
- <!--<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Green" />-->
- </ComboBox.Resources>
- </ComboBox>
- <!--第四行 开始按钮-->
- <Button Cursor="Hand" Grid.Row="4" IsDefault="True" x:Name="btnStart" Content="确定" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="43" Margin="10,0,10,0" Click="BtnStart_Click">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="1"
- CornerRadius="2">
- <Border.Background>#38ADFF</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- <Views:ZJClippingBorder Grid.Row="0" Grid.RowSpan="2" x:Name="tip_outer" Margin="0" Background="#FFE6EAF0" CornerRadius="4" Visibility="Collapsed">
- <Grid>
- <Label Content="上传中..." HorizontalAlignment="Center" Margin="0,7,0,0" Height="35" VerticalAlignment="Top" FontSize="20"></Label>
- <ProgressBar BorderBrush="#4597FF"
- Foreground="#4597FF"
- Grid.Row="0"
- x:Name="pgbProcess"
- Height="20"
- Margin="50,20,50,0"
- Visibility="Visible" />
- <Label Grid.Row="0"
- HorizontalAlignment="Center" Width="60"
- x:Name="lbProcess"
- Height="30"
- Margin="0,20,0,0"
- FontSize="16"
- Content=""
- Foreground="White"
- Visibility="Visible" />
- </Grid>
- </Views:ZJClippingBorder>
- </Grid>
- </Viewbox>
- </Window>
|