星火微课系统客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

FileDirectoryWindow.xaml 3.7KB

4 年前
4 年前
4 年前
4 年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <Window x:Class="XHWK.WKTool.FileDirectoryWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:XHWK.WKTool"
  7. mc:Ignorable="d"
  8. Title="FileDirectoryWindow" Height="729" Width="1030" AllowsTransparency="True"
  9. ShowInTaskbar="False"
  10. WindowStartupLocation="CenterOwner"
  11. WindowStyle="None">
  12. <Viewbox>
  13. <Grid Height="729" Width="1030" >
  14. <!--分4行-->
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="45"/>
  17. <RowDefinition Height="*"/>
  18. <RowDefinition Height="80"/>
  19. </Grid.RowDefinitions>
  20. <!--第一行 标题-->
  21. <Border Grid.Row="0" Background="#2D8CF0">
  22. <Grid MouseLeftButtonDown="Window_MouseLeftButtonDown">
  23. <TextBlock Text="文件目录" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
  24. <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"/>
  25. </Grid>
  26. </Border>
  27. <!--第二行 内容-->
  28. <Grid>
  29. </Grid>
  30. <!--第三行 删除 上传 按钮-->
  31. <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Center">
  32. <Button Cursor="Hand" x:Name="btnDelete" Content="删除" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="115" Height="45" Margin="0,0,30,0">
  33. <Button.Template>
  34. <ControlTemplate TargetType="{x:Type Button}">
  35. <Border
  36. BorderBrush="{TemplateBinding Control.BorderBrush}"
  37. BorderThickness="1"
  38. CornerRadius="2">
  39. <Border.Background>#F0582B</Border.Background>
  40. <ContentPresenter
  41. HorizontalAlignment="Center"
  42. VerticalAlignment="Center"
  43. Content="{TemplateBinding ContentControl.Content}" />
  44. </Border>
  45. </ControlTemplate>
  46. </Button.Template>
  47. </Button>
  48. <Button Cursor="Hand" x:Name="btnUpload" Content="上传" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="115" Height="45" Margin="30,0,0,0">
  49. <Button.Template>
  50. <ControlTemplate TargetType="{x:Type Button}">
  51. <Border
  52. BorderBrush="{TemplateBinding Control.BorderBrush}"
  53. BorderThickness="1"
  54. CornerRadius="2">
  55. <Border.Background>#2D8CF0</Border.Background>
  56. <ContentPresenter
  57. HorizontalAlignment="Center"
  58. VerticalAlignment="Center"
  59. Content="{TemplateBinding ContentControl.Content}" />
  60. </Border>
  61. </ControlTemplate>
  62. </Button.Template>
  63. </Button>
  64. </StackPanel>
  65. </Grid>
  66. </Viewbox>
  67. </Window>