1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <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="600" Width="900" AllowsTransparency="True"
- ShowInTaskbar="False"
- WindowStartupLocation="CenterOwner"
- WindowStyle="None" BorderThickness="7">
- <Window.Effect>
- <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
- </Window.Effect>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="120"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="80"/>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Background="#E6EAF0" MouseLeftButtonDown="Window_MouseLeftButtonDown">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="70"/>
- </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"/>
- </StackPanel>
-
- <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">
-
- </Button>
- <StackPanel Grid.Row="2" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10,2,0,0" Height="40">
- <ComboBox Cursor="Hand" Width="210"
- x:Name="cmbClass"
- Padding="10,0,10,0"
- VerticalContentAlignment="Center"
- BorderThickness="0"
- DisplayMemberPath="Value"
- FontSize="14"
- SelectedValuePath="Key"
- />
- <TextBlock Text="份数:" FontSize="20" Margin="120,0,0,0" Padding="0,10,0,0"/>
- <TextBlock x:Name="txbNumberOfCopies" Width="100" Text="1" FontSize="16" Padding="50,10,0,0" Background="White"/>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <Button Grid.Row="0" x:Name="btnLess" Content="-" Click="BtnLess_Click"/>
- <Button Grid.Row="1" x:Name="btnAdd" Content="+" Click="BtnAdd_Click"/>
- </Grid>
- <!--<TextBlock Text="点型:" FontSize="20" Margin="120,10,0,0"/>
- <RadioButton x:Name="rbnSquarePoint" Content="方点" FontSize="16" Margin="0,15,0,0" IsChecked="True"/>
- <RadioButton x:Name="rbnDots" Content="圆点" FontSize="16" Margin="0,15,0,0"/>-->
- </StackPanel>
- </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>
|