123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <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"
- 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="80"/>
- <RowDefinition Height="60"/>
- <RowDefinition Height="60"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <!--第一行 标题-->
- <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown">
- <Grid>
- <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>
- </Border>
- <!--第三行 教材-->
- <ComboBox Cursor="Hand"
- x:Name="book_list"
- Grid.Row="2"
- Height="30"
- Width="300"
- Margin="0,0,0,0"
- Padding="10,0,0,0"
- VerticalContentAlignment="Center"
- DisplayMemberPath="Value"
- FontSize="14"
- ItemsSource="{Binding bookList}"
- SelectedValuePath="Key"
- SelectionChanged="toolbar_list_SelectionChanged"
- >
- <ComboBox.Resources>
- <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="WhiteSmoke" />
- <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Gray" />
- </ComboBox.Resources>
- </ComboBox>
- <!--章节-->
- <ComboBox Cursor="Hand"
- x:Name="cmbTeachingMaterial"
- Grid.Row="3"
- Height="30"
- Width="300"
- Padding="10,0,0,0"
- VerticalContentAlignment="Center"
- Background="White"
- DisplayMemberPath="Value"
- FontSize="14"
- Foreground="Black"
- ItemsSource="{Binding zhangjieList}"
- SelectedValuePath="Key" />
- <!--第四行 开始按钮-->
- <Button Cursor="Hand" Grid.Row="4" 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>#2D8CF0</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- </Viewbox>
- </Window>
|