12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <Window x:Class="XHWK.WKTool.PrintWindow"
- 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="PrintWindow" Height="729" Width="1028" AllowsTransparency="True"
- ShowInTaskbar="False"
- WindowStartupLocation="CenterOwner"
- WindowStyle="None">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="102"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="80"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Background="#E6EAF0">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="0" Text="打印预览" Background="#2E8CF0" Foreground="#FFFFFF" Width="50" HorizontalAlignment="Left" Margin="10,5,0,0"/>
- <StackPanel Grid.Row="1" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10,10,0,0">
- <TextBlock Text="打印机:" Width="210" FontSize="20"/>
- <TextBlock Text="份数:" FontSize="20" Margin="120,0,0,0"/>
- <TextBox Width="100"/>
- </StackPanel>
- <Button Grid.Row="1" Background="#CC4848" Foreground="#FFFFFF" Content="×" FontSize="20" Width="30" Height="30" HorizontalAlignment="Right" Margin="0,0,20,0">
-
- </Button>
- <StackPanel Grid.Row="2" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10,10,0,0">
- <ComboBox Cursor="Hand" Width="210"
- x:Name="cmbClass"
- Padding="10,0,10,0"
- VerticalContentAlignment="Center"
- BorderThickness="0"
- DisplayMemberPath="Value"
- FontSize="14"
- ItemsSource="{Binding bookList}"
- SelectedValuePath="Key"
- SelectionChanged="cmbClass_SelectionChanged" />
- <TextBlock Text="点型:" FontSize="20" Margin="120,0,0,0"/>
- <RadioButton Content="方点" FontSize="16" IsChecked="True" Margin="0,5,0,0"/>
- <RadioButton Content="圆点" FontSize="16" IsChecked="True" Margin="0,5,0,0"/>
- </StackPanel>
- <TextBlock Grid.Row="2" Text="关闭" HorizontalAlignment="Right" Margin="0,10,20,0" Width="30" Height="30"/>
- </Grid>
- <Grid Grid.Row="1">
- <Image x:Name="imgPri"/>
- </Grid>
-
- <Button
- x:Name="btnPrint"
- Grid.Row="8"
- Width="115"
- Height="46"
- Click="BtnPrint_Click"
- Content="打印"
- Foreground="White"
- FontSize="17"
- IsDefault="True"
- Cursor="Hand"
- Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="1"
- CornerRadius="7">
- <Border.Background>#2E8CF0</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- </Window>
|