星火微课系统客户端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

PrintWindow.xaml 4.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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="729" Width="1028" AllowsTransparency="True"
  9. ShowInTaskbar="False"
  10. WindowStartupLocation="CenterOwner"
  11. WindowStyle="None">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="102"/>
  15. <RowDefinition Height="*"/>
  16. <RowDefinition Height="80"/>
  17. </Grid.RowDefinitions>
  18. <Grid Grid.Row="0" Background="#E6EAF0">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="auto"/>
  21. <RowDefinition Height="auto"/>
  22. <RowDefinition Height="auto"/>
  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. <TextBox Width="100"/>
  29. </StackPanel>
  30. <Button Grid.Row="1" Background="#CC4848" Foreground="#FFFFFF" Content="×" FontSize="20" Width="30" Height="30" HorizontalAlignment="Right" Margin="0,0,20,0">
  31. </Button>
  32. <StackPanel Grid.Row="2" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10,10,0,0">
  33. <ComboBox Cursor="Hand" Width="210"
  34. x:Name="cmbClass"
  35. Padding="10,0,10,0"
  36. VerticalContentAlignment="Center"
  37. BorderThickness="0"
  38. DisplayMemberPath="Value"
  39. FontSize="14"
  40. ItemsSource="{Binding bookList}"
  41. SelectedValuePath="Key"
  42. SelectionChanged="cmbClass_SelectionChanged" />
  43. <TextBlock Text="点型:" FontSize="20" Margin="120,0,0,0"/>
  44. <RadioButton Content="方点" FontSize="16" IsChecked="True" Margin="0,5,0,0"/>
  45. <RadioButton Content="圆点" FontSize="16" IsChecked="True" Margin="0,5,0,0"/>
  46. </StackPanel>
  47. <TextBlock Grid.Row="2" Text="关闭" HorizontalAlignment="Right" Margin="0,10,20,0" Width="30" Height="30"/>
  48. </Grid>
  49. <Grid Grid.Row="1">
  50. <Image x:Name="imgPri"/>
  51. </Grid>
  52. <Button
  53. x:Name="btnPrint"
  54. Grid.Row="8"
  55. Width="115"
  56. Height="46"
  57. Click="BtnPrint_Click"
  58. Content="打印"
  59. Foreground="White"
  60. FontSize="17"
  61. IsDefault="True"
  62. Cursor="Hand"
  63. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  64. <Button.Template>
  65. <ControlTemplate TargetType="{x:Type Button}">
  66. <Border
  67. BorderBrush="{TemplateBinding Control.BorderBrush}"
  68. BorderThickness="1"
  69. CornerRadius="7">
  70. <Border.Background>#2E8CF0</Border.Background>
  71. <ContentPresenter
  72. HorizontalAlignment="Center"
  73. VerticalAlignment="Center"
  74. Content="{TemplateBinding ContentControl.Content}" />
  75. </Border>
  76. </ControlTemplate>
  77. </Button.Template>
  78. </Button>
  79. </Grid>
  80. </Window>