星火微课系统客户端
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.5KB

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