|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <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="30"/>
- <RowDefinition Height="90"/>
- <RowDefinition Height="90"/>
- <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="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" 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>
|