星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PrintWindow.xaml 4.6KB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <Window x:Class="XHWK.WKTool.PrintWindow"
  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="PrintWindow" Height="600" Width="900" AllowsTransparency="True"
  9. ShowInTaskbar="False"
  10. WindowStartupLocation="CenterOwner"
  11. WindowStyle="None" BorderThickness="7">
  12. <Window.Effect>
  13. <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
  14. </Window.Effect>
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="120"/>
  18. <RowDefinition Height="*"/>
  19. <RowDefinition Height="80"/>
  20. </Grid.RowDefinitions>
  21. <Grid Grid.Row="0" Background="#E6EAF0" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="auto"/>
  24. <RowDefinition Height="*"/>
  25. <RowDefinition Height="70"/>
  26. </Grid.RowDefinitions>
  27. <!--<TextBlock Grid.Row="0" Text="打印预览" Background="#2E8CF0" Foreground="#FFFFFF" Width="50" HorizontalAlignment="Left" Margin="10,5,0,0"/>-->
  28. <StackPanel Grid.Row="1" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10,10,0,0">
  29. <TextBlock Text="打印机:" Width="210" FontSize="20"/>
  30. </StackPanel>
  31. <Button Grid.Row="2" x:Name="btnClose" Background="#CC4848" Foreground="#FFFFFF" Content="×" FontSize="20" Width="30" Height="30" HorizontalAlignment="Right" Margin="0,0,20,0" Click="BtnClose_Click">
  32. </Button>
  33. <StackPanel Grid.Row="2" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10,2,0,0" Height="40">
  34. <ComboBox Cursor="Hand" Width="210"
  35. x:Name="cmbClass"
  36. Padding="10,0,10,0"
  37. VerticalContentAlignment="Center"
  38. BorderThickness="0"
  39. DisplayMemberPath="Value"
  40. FontSize="14"
  41. SelectedValuePath="Key"
  42. />
  43. <TextBlock Text="份数:" FontSize="20" Margin="120,0,0,0" Padding="0,10,0,0"/>
  44. <TextBlock x:Name="txbNumberOfCopies" Width="100" Text="1" FontSize="16" Padding="50,10,0,0" Background="White"/>
  45. <Grid>
  46. <Grid.RowDefinitions>
  47. <RowDefinition Height="auto"/>
  48. <RowDefinition Height="auto"/>
  49. </Grid.RowDefinitions>
  50. <Button Grid.Row="0" x:Name="btnLess" Content="-" Click="BtnLess_Click"/>
  51. <Button Grid.Row="1" x:Name="btnAdd" Content="+" Click="BtnAdd_Click"/>
  52. </Grid>
  53. <!--<TextBlock Text="点型:" FontSize="20" Margin="120,10,0,0"/>
  54. <RadioButton x:Name="rbnSquarePoint" Content="方点" FontSize="16" Margin="0,15,0,0" IsChecked="True"/>
  55. <RadioButton x:Name="rbnDots" Content="圆点" FontSize="16" Margin="0,15,0,0"/>-->
  56. </StackPanel>
  57. </Grid>
  58. <Grid Grid.Row="1">
  59. <Image x:Name="imgPri"/>
  60. </Grid>
  61. <Button
  62. x:Name="btnPrint"
  63. Grid.Row="8"
  64. Width="115"
  65. Height="46"
  66. Click="BtnPrint_Click"
  67. Content="打印"
  68. Foreground="White"
  69. FontSize="17"
  70. IsDefault="True"
  71. Cursor="Hand"
  72. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  73. <Button.Template>
  74. <ControlTemplate TargetType="{x:Type Button}">
  75. <Border
  76. BorderBrush="{TemplateBinding Control.BorderBrush}"
  77. BorderThickness="1"
  78. CornerRadius="7">
  79. <Border.Background>#2E8CF0</Border.Background>
  80. <ContentPresenter
  81. HorizontalAlignment="Center"
  82. VerticalAlignment="Center"
  83. Content="{TemplateBinding ContentControl.Content}" />
  84. </Border>
  85. </ControlTemplate>
  86. </Button.Template>
  87. </Button>
  88. </Grid>
  89. </Window>