|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <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" xmlns:Views="clr-namespace:XHWK.WKTool.Helpers"
- 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>
- <Window.Resources>
- <Style x:Key="NoMouseOverButtonStyle" TargetType="{x:Type Button}">
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Padding" Value="1"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
- <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Window.Resources>
- <Viewbox>
- <Grid x:Name="GridContent" Height="600" Width="900">
- <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="50"/>
- <RowDefinition Height="50"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Button Cursor="Hand" Grid.Row="0" x:Name="btnClose" Background="#CC4848" Foreground="#FFFFFF" Content="×" FontSize="20" Width="30" Height="30" HorizontalAlignment="Right" Margin="0,0,10,0" Click="BtnClose_Click" Style="{StaticResource NoMouseOverButtonStyle}">
-
- </Button>
- <StackPanel Grid.Row="1" HorizontalAlignment="Left" Orientation="Horizontal" Margin="10,2,0,0" Height="40">
- <TextBlock Text="打印机:" FontSize="20" Padding="0,5,0,0"/>
- <ComboBox Cursor="Hand" Width="210"
- x:Name="cmbClass"
- Padding="30,0,10,0"
- VerticalContentAlignment="Center"
- BorderThickness="0"
- DisplayMemberPath="Value"
- FontSize="14"
- SelectedValuePath="Key"
- />
- <TextBlock Text="份数:" FontSize="20" Margin="80,0,0,0" Padding="0,5,0,0" HorizontalAlignment="Right"/>
- <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 Cursor="Hand" Grid.Row="0" x:Name="btnLess" Content="-" Click="BtnLess_Click"/>
- <Button Cursor="Hand" 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>
-
- <Views:ZJClippingBorder Grid.Row="0" x:Name="tip_outer" Margin="0" Background="#FFE6EAF0" CornerRadius="4" Visibility="Collapsed">
- <Grid>
- <Label Content="打印中..." HorizontalAlignment="Center" Margin="0,20,0,0" Height="35" VerticalAlignment="Top" FontSize="20"></Label>
- <ProgressBar BorderBrush="#4597FF"
- Foreground="#4597FF"
- Grid.Row="0"
- x:Name="pgbProcess"
- Height="20"
- Margin="50,20,50,0"
- Visibility="Visible" />
- <Label Grid.Row="0"
- HorizontalAlignment="Center" Width="100"
- x:Name="lbProcess"
- Height="30"
- Margin="0,20,0,0"
- FontSize="16"
- Content=""
- Foreground="White"
- Visibility="Visible" />
- </Grid>
- </Views:ZJClippingBorder>
- <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>
- </Viewbox>
- </Window>
|