|
@@ -82,125 +82,6 @@
|
82
|
82
|
<!-- ListBox容器样式 -->
|
83
|
83
|
|
84
|
84
|
<!-- 摄像头样式 -->
|
85
|
|
- <Style x:Key="StlToggleButton" TargetType="ToggleButton">
|
86
|
|
- <Setter Property="Foreground" Value="White" />
|
87
|
|
- <Setter Property="Template">
|
88
|
|
- <Setter.Value>
|
89
|
|
- <ControlTemplate>
|
90
|
|
- <Border
|
91
|
|
- x:Name="Back"
|
92
|
|
- Background="#FFFFFFFF"
|
93
|
|
- BorderBrush="Transparent"
|
94
|
|
- BorderThickness="0">
|
95
|
|
- <Path
|
96
|
|
- Name="PathFill"
|
97
|
|
- Width="8"
|
98
|
|
- Height="6"
|
99
|
|
- Data="M5,0 L10,10 L0,10 z"
|
100
|
|
- Fill="Black"
|
101
|
|
- RenderTransformOrigin="0.5,0.5"
|
102
|
|
- Stretch="Fill"
|
103
|
|
- StrokeThickness="0">
|
104
|
|
- <Path.RenderTransform>
|
105
|
|
- <TransformGroup>
|
106
|
|
- <ScaleTransform />
|
107
|
|
- <SkewTransform />
|
108
|
|
- <RotateTransform Angle="180" />
|
109
|
|
- <TranslateTransform />
|
110
|
|
- </TransformGroup>
|
111
|
|
- </Path.RenderTransform>
|
112
|
|
- </Path>
|
113
|
|
- </Border>
|
114
|
|
- <ControlTemplate.Triggers>
|
115
|
|
- <Trigger Property="IsMouseOver" Value="True">
|
116
|
|
- <Setter TargetName="PathFill" Property="Fill" Value="White" />
|
117
|
|
- <Setter TargetName="Back" Property="Background" Value="#FFDCDCDC" />
|
118
|
|
- <Setter TargetName="Back" Property="BorderBrush" Value="#FFDCDCDC" />
|
119
|
|
- </Trigger>
|
120
|
|
- </ControlTemplate.Triggers>
|
121
|
|
- </ControlTemplate>
|
122
|
|
- </Setter.Value>
|
123
|
|
- </Setter>
|
124
|
|
- </Style>
|
125
|
|
- <Style x:Key="StlComboBox" TargetType="ComboBox">
|
126
|
|
- <Setter Property="SnapsToDevicePixels" Value="True" />
|
127
|
|
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
128
|
|
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto" />
|
129
|
|
- <Setter Property="ScrollViewer.CanContentScroll" Value="True" />
|
130
|
|
- <Setter Property="HorizontalAlignment" Value="Left" />
|
131
|
|
- <Setter Property="Foreground" Value="Black" />
|
132
|
|
- <Setter Property="Height" Value="30" />
|
133
|
|
- <Setter Property="Margin" Value="0,0,0,0" />
|
134
|
|
- <Setter Property="Template">
|
135
|
|
- <Setter.Value>
|
136
|
|
- <ControlTemplate TargetType="ComboBox">
|
137
|
|
- <Grid Background="#F7FDF7">
|
138
|
|
- <Grid.ColumnDefinitions>
|
139
|
|
- <ColumnDefinition Width="0.8*" />
|
140
|
|
- <ColumnDefinition Width="0.2*" MaxWidth="20" />
|
141
|
|
- </Grid.ColumnDefinitions>
|
142
|
|
- <TextBox
|
143
|
|
- Grid.Column="0"
|
144
|
|
- VerticalContentAlignment="Center"
|
145
|
|
- IsReadOnly="True"
|
146
|
|
- Text="{TemplateBinding Text}" />
|
147
|
|
- <Border
|
148
|
|
- Grid.Column="0"
|
149
|
|
- BorderBrush="#FFDCDCDC"
|
150
|
|
- BorderThickness="1,1,1,1"
|
151
|
|
- CornerRadius="1,0,0,1" />
|
152
|
|
- <Border
|
153
|
|
- Grid.Column="1"
|
154
|
|
- BorderBrush="#FFDCDCDC"
|
155
|
|
- BorderThickness="0,1,1,1"
|
156
|
|
- CornerRadius="0,1,1,0">
|
157
|
|
- <ToggleButton
|
158
|
|
- ClickMode="Press"
|
159
|
|
- IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
|
160
|
|
- Style="{StaticResource StlToggleButton}" />
|
161
|
|
- </Border>
|
162
|
|
- <Popup
|
163
|
|
- x:Name="Popup"
|
164
|
|
- Grid.Column="0"
|
165
|
|
- AllowsTransparency="True"
|
166
|
|
- Focusable="False"
|
167
|
|
- IsOpen="{TemplateBinding IsDropDownOpen}"
|
168
|
|
- Placement="Bottom"
|
169
|
|
- PopupAnimation="Slide">
|
170
|
|
- <Border
|
171
|
|
- x:Name="DropDown"
|
172
|
|
- MinWidth="{TemplateBinding ActualWidth}"
|
173
|
|
- MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
174
|
|
- CornerRadius="1"
|
175
|
|
- SnapsToDevicePixels="True">
|
176
|
|
- <Border.Effect>
|
177
|
|
- <DropShadowEffect
|
178
|
|
- BlurRadius="2"
|
179
|
|
- Opacity="0.5"
|
180
|
|
- ShadowDepth="0"
|
181
|
|
- Color="Black" />
|
182
|
|
- </Border.Effect>
|
183
|
|
- <ScrollViewer
|
184
|
|
- MaxHeight="{TemplateBinding MaxDropDownHeight}"
|
185
|
|
- Margin="4,6,4,6"
|
186
|
|
- CanContentScroll="True"
|
187
|
|
- HorizontalScrollBarVisibility="Auto"
|
188
|
|
- SnapsToDevicePixels="True"
|
189
|
|
- Style="{DynamicResource ScrollViewerStyle}"
|
190
|
|
- VerticalScrollBarVisibility="Auto">
|
191
|
|
- <!-- StackPanel 用于显示子级,方法是将 IsItemsHost 设置为 True -->
|
192
|
|
- <StackPanel
|
193
|
|
- Background="White"
|
194
|
|
- IsItemsHost="True"
|
195
|
|
- KeyboardNavigation.DirectionalNavigation="Contained" />
|
196
|
|
- </ScrollViewer>
|
197
|
|
- </Border>
|
198
|
|
- </Popup>
|
199
|
|
- </Grid>
|
200
|
|
- </ControlTemplate>
|
201
|
|
- </Setter.Value>
|
202
|
|
- </Setter>
|
203
|
|
- </Style>
|
204
|
85
|
</Window.Resources>
|
205
|
86
|
|
206
|
87
|
<Grid>
|
|
@@ -414,8 +295,7 @@
|
414
|
295
|
</Grid>
|
415
|
296
|
<ControlTemplate.Triggers>
|
416
|
297
|
<Trigger Property="IsMouseOver" Value="True">
|
417
|
|
- <Setter TargetName="ImgSetUp" Property="Source"
|
418
|
|
- Value="/SkinImages/TechnologyBlue/HM_Close_MI.png" />
|
|
298
|
+ <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/HM_Close_MI.png" />
|
419
|
299
|
<Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF" />
|
420
|
300
|
</Trigger>
|
421
|
301
|
</ControlTemplate.Triggers>
|
|
@@ -617,20 +497,15 @@
|
617
|
497
|
</Grid>
|
618
|
498
|
<ControlTemplate.Triggers>
|
619
|
499
|
<Trigger Property="IsMouseOver" Value="True">
|
620
|
|
- <Setter TargetName="ImgScreenRecording" Property="Source"
|
621
|
|
- Value="/SkinImages/White/Toolbar_LP_MI.png" />
|
|
500
|
+ <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_MI.png" />
|
622
|
501
|
</Trigger>
|
623
|
502
|
<Trigger Property="IsPressed" Value="True">
|
624
|
|
- <Setter TargetName="ImgScreenRecording" Property="Source"
|
625
|
|
- Value="/SkinImages/White/Toolbar_LP_CL.png" />
|
626
|
|
- <Setter TargetName="WordScreenRecording" Property="Foreground"
|
627
|
|
- Value="#FFFFFFFF" />
|
|
503
|
+ <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_CL.png" />
|
|
504
|
+ <Setter TargetName="WordScreenRecording" Property="Foreground" Value="#FFFFFFFF" />
|
628
|
505
|
</Trigger>
|
629
|
506
|
<Trigger Property="IsEnabled" Value="False">
|
630
|
|
- <Setter TargetName="ImgScreenRecording" Property="Source"
|
631
|
|
- Value="/SkinImages/White/Toolbar_LP_N.png" />
|
632
|
|
- <Setter TargetName="WordScreenRecording" Property="Foreground"
|
633
|
|
- Value="#FFC3C3C3" />
|
|
507
|
+ <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_N.png" />
|
|
508
|
+ <Setter TargetName="WordScreenRecording" Property="Foreground" Value="#FFC3C3C3" />
|
634
|
509
|
</Trigger>
|
635
|
510
|
</ControlTemplate.Triggers>
|
636
|
511
|
</ControlTemplate>
|
|
@@ -1200,13 +1075,11 @@
|
1200
|
1075
|
<Button.Template>
|
1201
|
1076
|
<ControlTemplate TargetType="{x:Type Button}">
|
1202
|
1077
|
<StackPanel>
|
1203
|
|
- <Image x:Name="ImgRecord"
|
1204
|
|
- Source="/SkinImages/Skin/Skin_White.png" />
|
|
1078
|
+ <Image x:Name="ImgRecord" Source="/SkinImages/Skin/Skin_White.png" />
|
1205
|
1079
|
</StackPanel>
|
1206
|
1080
|
<ControlTemplate.Triggers>
|
1207
|
1081
|
<Trigger Property="IsMouseOver" Value="True">
|
1208
|
|
- <Setter TargetName="ImgRecord" Property="Source"
|
1209
|
|
- Value="/SkinImages/Skin/Skin_White_MI.png" />
|
|
1082
|
+ <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/Skin/Skin_White_MI.png" />
|
1210
|
1083
|
</Trigger>
|
1211
|
1084
|
</ControlTemplate.Triggers>
|
1212
|
1085
|
</ControlTemplate>
|
|
@@ -1232,13 +1105,11 @@
|
1232
|
1105
|
<Button.Template>
|
1233
|
1106
|
<ControlTemplate TargetType="{x:Type Button}">
|
1234
|
1107
|
<StackPanel>
|
1235
|
|
- <Image x:Name="ImgRecord"
|
1236
|
|
- Source="/SkinImages/Skin/Skin_TechnologyBlue.png" />
|
|
1108
|
+ <Image x:Name="ImgRecord" Source="/SkinImages/Skin/Skin_TechnologyBlue.png" />
|
1237
|
1109
|
</StackPanel>
|
1238
|
1110
|
<ControlTemplate.Triggers>
|
1239
|
1111
|
<Trigger Property="IsMouseOver" Value="True">
|
1240
|
|
- <Setter TargetName="ImgRecord" Property="Source"
|
1241
|
|
- Value="/SkinImages/Skin/Skin_TechnologyBlue_MI.png" />
|
|
1112
|
+ <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/Skin/Skin_TechnologyBlue_MI.png" />
|
1242
|
1113
|
</Trigger>
|
1243
|
1114
|
</ControlTemplate.Triggers>
|
1244
|
1115
|
</ControlTemplate>
|
|
@@ -1739,14 +1610,13 @@
|
1739
|
1610
|
<Border
|
1740
|
1611
|
x:Name="GridPrintingTitle"
|
1741
|
1612
|
Width="446"
|
1742
|
|
- Height="188"
|
|
1613
|
+ Height="108"
|
1743
|
1614
|
BorderBrush="#eeeeee"
|
1744
|
1615
|
BorderThickness="1"
|
1745
|
1616
|
Visibility="Collapsed">
|
1746
|
1617
|
<Grid Background="#ffffff">
|
1747
|
1618
|
<Grid.RowDefinitions>
|
1748
|
|
- <RowDefinition Height="42" />
|
1749
|
|
- <RowDefinition Height="*" />
|
|
1619
|
+ <RowDefinition Height="40" />
|
1750
|
1620
|
<RowDefinition Height="64" />
|
1751
|
1621
|
</Grid.RowDefinitions>
|
1752
|
1622
|
<Grid Grid.Row="0" Background="#3F6FFF">
|
|
@@ -1755,58 +1625,28 @@
|
1755
|
1625
|
VerticalAlignment="Center"
|
1756
|
1626
|
FontSize="16"
|
1757
|
1627
|
Foreground="White"
|
1758
|
|
- Text="打印机" />
|
|
1628
|
+ Text="打印" />
|
1759
|
1629
|
|
1760
|
1630
|
<Button
|
1761
|
1631
|
Grid.Row="0"
|
1762
|
1632
|
Width="46"
|
|
1633
|
+ Margin="0,-2,0,0"
|
1763
|
1634
|
HorizontalAlignment="Right"
|
1764
|
|
- VerticalAlignment="Stretch"
|
|
1635
|
+ VerticalContentAlignment="Center"
|
1765
|
1636
|
Click="BtnPrintCloseClick"
|
1766
|
1637
|
Content="×"
|
1767
|
1638
|
Cursor="Hand"
|
1768
|
1639
|
FontSize="30"
|
1769
|
1640
|
Foreground="White" />
|
1770
|
1641
|
</Grid>
|
1771
|
|
- <Grid Grid.Row="1" Height="46">
|
1772
|
|
- <Grid.ColumnDefinitions>
|
1773
|
|
- <ColumnDefinition Width="Auto" />
|
1774
|
|
- <ColumnDefinition Width="*" />
|
1775
|
|
- </Grid.ColumnDefinitions>
|
1776
|
|
- <TextBlock
|
1777
|
|
- Grid.Column="0"
|
1778
|
|
- Margin="10,0,0,0"
|
1779
|
|
- HorizontalAlignment="Left"
|
1780
|
|
- VerticalAlignment="Center"
|
1781
|
|
- FontSize="16"
|
1782
|
|
- Style="{DynamicResource TxbMesColor}"
|
1783
|
|
- Text="打印机" />
|
1784
|
|
-
|
1785
|
|
- <ComboBox
|
1786
|
|
- x:Name="CmbClass"
|
1787
|
|
- Grid.Column="1"
|
1788
|
|
- Height="36"
|
1789
|
|
- Margin="10,0,10,0"
|
1790
|
|
- HorizontalAlignment="Stretch"
|
1791
|
|
- HorizontalContentAlignment="Left"
|
1792
|
|
- VerticalContentAlignment="Center"
|
1793
|
|
- Background="White"
|
1794
|
|
- BorderThickness="0"
|
1795
|
|
- Cursor="Hand"
|
1796
|
|
- DisplayMemberPath="Value"
|
1797
|
|
- FontSize="16"
|
1798
|
|
- SelectedValuePath="Key"
|
1799
|
|
- Style="{StaticResource StlComboBox}"
|
1800
|
|
- Text="请选择" />
|
1801
|
|
- </Grid>
|
1802
|
1642
|
|
1803
|
|
- <Grid Grid.Row="2">
|
|
1643
|
+ <Grid Grid.Row="1">
|
1804
|
1644
|
<Grid.ColumnDefinitions>
|
1805
|
1645
|
<ColumnDefinition Width="30" />
|
1806
|
1646
|
<ColumnDefinition Width="Auto" />
|
1807
|
1647
|
<ColumnDefinition Width="*" />
|
1808
|
|
- <ColumnDefinition Width="86" />
|
1809
|
|
- <ColumnDefinition Width="86" />
|
|
1648
|
+ <ColumnDefinition Width="Auto" />
|
|
1649
|
+ <ColumnDefinition Width="Auto" />
|
1810
|
1650
|
</Grid.ColumnDefinitions>
|
1811
|
1651
|
|
1812
|
1652
|
<Image
|
|
@@ -1827,30 +1667,30 @@
|
1827
|
1667
|
Click="btnPrintExplain_Click"
|
1828
|
1668
|
Content="打印说明"
|
1829
|
1669
|
Cursor="Hand"
|
1830
|
|
- FontSize="14"
|
|
1670
|
+ FontSize="16"
|
1831
|
1671
|
Foreground="#3F6FFF"
|
1832
|
1672
|
IsDefault="True" />
|
1833
|
1673
|
|
1834
|
1674
|
<Button
|
1835
|
1675
|
Grid.Column="3"
|
1836
|
|
- Width="76"
|
1837
|
|
- Height="30"
|
|
1676
|
+ Width="100"
|
|
1677
|
+ Height="36"
|
1838
|
1678
|
Margin="0,0,10,0"
|
1839
|
1679
|
HorizontalAlignment="Stretch"
|
1840
|
|
- VerticalAlignment="Stretch"
|
|
1680
|
+ VerticalAlignment="Center"
|
1841
|
1681
|
Background="#3F6FFF"
|
1842
|
1682
|
Click="Print_No_Code_Click"
|
1843
|
1683
|
Content="普通打印"
|
1844
|
1684
|
Cursor="Hand"
|
1845
|
|
- FontSize="12"
|
|
1685
|
+ FontSize="16"
|
1846
|
1686
|
Foreground="White"
|
1847
|
1687
|
IsDefault="True" />
|
1848
|
1688
|
|
1849
|
1689
|
<Button
|
1850
|
1690
|
x:Name="BtnPrintPrint"
|
1851
|
1691
|
Grid.Column="4"
|
1852
|
|
- Width="76"
|
1853
|
|
- Height="30"
|
|
1692
|
+ Width="100"
|
|
1693
|
+ Height="36"
|
1854
|
1694
|
Margin="0,0,10,0"
|
1855
|
1695
|
HorizontalAlignment="Stretch"
|
1856
|
1696
|
VerticalAlignment="Stretch"
|
|
@@ -1858,7 +1698,7 @@
|
1858
|
1698
|
Click="BtnPrint_Print_Click"
|
1859
|
1699
|
Content="铺码打印"
|
1860
|
1700
|
Cursor="Hand"
|
1861
|
|
- FontSize="12"
|
|
1701
|
+ FontSize="16"
|
1862
|
1702
|
Foreground="White"
|
1863
|
1703
|
IsDefault="True" />
|
1864
|
1704
|
</Grid>
|