终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MyStyle.xaml 81 KiB

2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
2 vuotta sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682
  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
  5. <ImageBrush x:Key="imageBJ" ImageSource="/BPASmartClient.CustomResource;component/Image/图层1.png" />
  6. <ImageBrush x:Key="image1" ImageSource="/BPASmartClient.CustomResource;component/Image/shape.png" />
  7. <ImageBrush x:Key="image2" ImageSource="/BPASmartClient.CustomResource;component/Image/shape1.png" />
  8. <!--#region Label-->
  9. <Style TargetType="{x:Type Label}">
  10. <Setter Property="Foreground" Value="#FF00EEF3" />
  11. <Setter Property="Background" Value="Transparent" />
  12. <Setter Property="Padding" Value="5" />
  13. <Setter Property="HorizontalContentAlignment" Value="Left" />
  14. <Setter Property="VerticalContentAlignment" Value="Top" />
  15. <Setter Property="FontSize" Value="18" />
  16. <Setter Property="Template">
  17. <Setter.Value>
  18. <ControlTemplate TargetType="{x:Type Label}">
  19. <Border
  20. Padding="{TemplateBinding Padding}"
  21. Background="{TemplateBinding Background}"
  22. BorderBrush="{TemplateBinding BorderBrush}"
  23. BorderThickness="{TemplateBinding BorderThickness}"
  24. SnapsToDevicePixels="true">
  25. <ContentPresenter
  26. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  27. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  28. RecognizesAccessKey="True"
  29. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  30. </Border>
  31. <ControlTemplate.Triggers>
  32. <Trigger Property="IsEnabled" Value="false">
  33. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
  34. </Trigger>
  35. </ControlTemplate.Triggers>
  36. </ControlTemplate>
  37. </Setter.Value>
  38. </Setter>
  39. </Style>
  40. <!--#endregion-->
  41. <!--#region Color-->
  42. <SolidColorBrush x:Key="foreground" Color="#FFA2C2E8" />
  43. <!--#endregion-->
  44. <!--#region ToggleButton-->
  45. <Style x:Key="StatusBtnStyle告警" TargetType="ToggleButton">
  46. <Style.Setters>
  47. <Setter Property="Width" Value="30" />
  48. <Setter Property="Height" Value="19" />
  49. <Setter Property="Cursor" Value="Hand" />
  50. <Setter Property="IsChecked" Value="{Binding IsCheck, Mode=TwoWay}" />
  51. <Setter Property="Template">
  52. <Setter.Value>
  53. <ControlTemplate TargetType="ToggleButton">
  54. <Grid Cursor="Hand">
  55. <Border
  56. x:Name="bd1"
  57. Width="25"
  58. Height="13"
  59. Margin="0,-10,-5,0"
  60. HorizontalAlignment="Right"
  61. VerticalAlignment="Top"
  62. Panel.ZIndex="100"
  63. Background="#2600CAFF"
  64. CornerRadius="3"
  65. Cursor="Hand"
  66. Visibility="Collapsed">
  67. <TextBlock
  68. HorizontalAlignment="Center"
  69. FontSize="8"
  70. Foreground="#FF00E6F7"
  71. Text="{Binding ListNum, Mode=TwoWay}" />
  72. <!-- -->
  73. </Border>
  74. <Image
  75. x:Name="image1"
  76. Width="{TemplateBinding Width}"
  77. Height="{TemplateBinding Height}"
  78. Panel.ZIndex="0"
  79. RenderOptions.BitmapScalingMode="HighQuality"
  80. SnapsToDevicePixels="True"
  81. Source="/BPASmartClient.CustomResource;component/Image/告警/无告警.png"
  82. UseLayoutRounding="True" />
  83. </Grid>
  84. <ControlTemplate.Triggers>
  85. <Trigger Property="IsChecked" Value="true">
  86. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/严重告警.png" />
  87. <Setter TargetName="bd1" Property="Visibility" Value="Visible" />
  88. </Trigger>
  89. <Trigger Property="IsChecked" Value="False">
  90. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/无告警.png" />
  91. <Setter TargetName="bd1" Property="Visibility" Value="Collapsed" />
  92. </Trigger>
  93. <MultiDataTrigger>
  94. <MultiDataTrigger.Conditions>
  95. <Condition Binding="{Binding IsCheck}" Value="true" />
  96. <Condition Binding="{Binding IsAlarm}" Value="true" />
  97. </MultiDataTrigger.Conditions>
  98. <MultiDataTrigger.Setters>
  99. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/严重告警.png" />
  100. <Setter TargetName="bd1" Property="Visibility" Value="Visible" />
  101. </MultiDataTrigger.Setters>
  102. </MultiDataTrigger>
  103. </ControlTemplate.Triggers>
  104. </ControlTemplate>
  105. </Setter.Value>
  106. </Setter>
  107. </Style.Setters>
  108. </Style>
  109. <Style x:Key="StatusBtnStyle网络连接状态" TargetType="ToggleButton">
  110. <Style.Setters>
  111. <Setter Property="Width" Value="20" />
  112. <Setter Property="Height" Value="25" />
  113. <Setter Property="Cursor" Value="Hand" />
  114. <Setter Property="IsChecked" Value="{Binding IsCheck, Mode=TwoWay}" />
  115. <Setter Property="Template">
  116. <Setter.Value>
  117. <ControlTemplate TargetType="ToggleButton">
  118. <Grid Cursor="Hand">
  119. <Image
  120. x:Name="image1"
  121. Width="{TemplateBinding Width}"
  122. Height="{TemplateBinding Height}"
  123. Panel.ZIndex="0"
  124. RenderOptions.BitmapScalingMode="HighQuality"
  125. SnapsToDevicePixels="True"
  126. Source="/BPASmartClient.CustomResource;component/Image/告警/Wifi_NO.png"
  127. UseLayoutRounding="True" />
  128. </Grid>
  129. <ControlTemplate.Triggers>
  130. <Trigger Property="IsChecked" Value="true">
  131. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/Wifi_OK.png" />
  132. </Trigger>
  133. <MultiDataTrigger>
  134. <MultiDataTrigger.Conditions>
  135. <Condition Binding="{Binding IsCheck}" Value="true" />
  136. <Condition Binding="{Binding IsAlarm}" Value="true" />
  137. </MultiDataTrigger.Conditions>
  138. <MultiDataTrigger.Setters>
  139. <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/Wifi_OK.png" />
  140. </MultiDataTrigger.Setters>
  141. </MultiDataTrigger>
  142. </ControlTemplate.Triggers>
  143. </ControlTemplate>
  144. </Setter.Value>
  145. </Setter>
  146. </Style.Setters>
  147. </Style>
  148. <!--#endregion-->
  149. <!--#region Image-->
  150. <Style TargetType="Image">
  151. <Style.Setters>
  152. <Setter Property="UseLayoutRounding" Value="True" />
  153. <Setter Property="SnapsToDevicePixels" Value="True" />
  154. <Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality" />
  155. </Style.Setters>
  156. </Style>
  157. <Style x:Key="imagetop_维护" TargetType="Image">
  158. <Style.Setters>
  159. <Setter Property="Width" Value="20" />
  160. <Setter Property="Height" Value="22" />
  161. <Setter Property="VerticalAlignment" Value="Top" />
  162. <Setter Property="HorizontalAlignment" Value="Center" />
  163. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png" />
  164. </Style.Setters>
  165. </Style>
  166. <Style x:Key="imagetop_功能列表" TargetType="Image">
  167. <Style.Setters>
  168. <Setter Property="Width" Value="20" />
  169. <Setter Property="Height" Value="22" />
  170. <Setter Property="VerticalAlignment" Value="Top" />
  171. <Setter Property="HorizontalAlignment" Value="Center" />
  172. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/功能列表.png" />
  173. </Style.Setters>
  174. </Style>
  175. <Style x:Key="imagetop_产品制作" TargetType="Image">
  176. <Style.Setters>
  177. <Setter Property="Width" Value="20" />
  178. <Setter Property="Height" Value="22" />
  179. <Setter Property="VerticalAlignment" Value="Top" />
  180. <Setter Property="HorizontalAlignment" Value="Center" />
  181. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
  182. </Style.Setters>
  183. </Style>
  184. <Style x:Key="imagetop_L" TargetType="Image">
  185. <Style.Setters>
  186. <Setter Property="Height" Value="80" />
  187. <Setter Property="VerticalAlignment" Value="Top" />
  188. <Setter Property="HorizontalAlignment" Value="Left" />
  189. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
  190. </Style.Setters>
  191. </Style>
  192. <Style x:Key="imagetop_Title" TargetType="Image">
  193. <Style.Setters>
  194. <Setter Property="Width" Value="250" />
  195. <Setter Property="VerticalAlignment" Value="Top" />
  196. <Setter Property="HorizontalAlignment" Value="Left" />
  197. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/黑菠萝智慧餐饮管理系统.png" />
  198. </Style.Setters>
  199. </Style>
  200. <Style x:Key="imagetop_矩形" TargetType="Image">
  201. <Style.Setters>
  202. <Setter Property="VerticalAlignment" Value="Top" />
  203. <Setter Property="HorizontalAlignment" Value="Left" />
  204. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
  205. </Style.Setters>
  206. </Style>
  207. <Style x:Key="imagetop" TargetType="Image">
  208. <Style.Setters>
  209. <Setter Property="VerticalAlignment" Value="Top" />
  210. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
  211. </Style.Setters>
  212. </Style>
  213. <Style x:Key="imagetop1" TargetType="Image">
  214. <Style.Setters>
  215. <Setter Property="VerticalAlignment" Value="Top" />
  216. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部.png" />
  217. </Style.Setters>
  218. </Style>
  219. <Style x:Key="image营销额" TargetType="Image">
  220. <Style.Setters>
  221. <Setter Property="VerticalAlignment" Value="Bottom" />
  222. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/营销额.png" />
  223. </Style.Setters>
  224. </Style>
  225. <Style x:Key="imagetitletext" TargetType="Image">
  226. <Style.Setters>
  227. <Setter Property="Height" Value="20" />
  228. <Setter Property="VerticalAlignment" Value="Center" />
  229. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/titletext.png" />
  230. </Style.Setters>
  231. </Style>
  232. <Style x:Key="image圆角矩形" TargetType="Image">
  233. <Style.Setters>
  234. <Setter Property="Height" Value="33" />
  235. <Setter Property="VerticalAlignment" Value="Center" />
  236. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/圆角矩形 4.png" />
  237. </Style.Setters>
  238. </Style>
  239. <Style x:Key="image黑菠萝科技" TargetType="Image">
  240. <Style.Setters>
  241. <Setter Property="HorizontalAlignment" Value="Center" />
  242. <Setter Property="Height" Value="24" />
  243. <Setter Property="Width" Value="70" />
  244. <Setter Property="VerticalAlignment" Value="Bottom" />
  245. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/黑菠萝科技.png" />
  246. </Style.Setters>
  247. </Style>
  248. <Style x:Key="MainBJ" TargetType="Image">
  249. <Style.Setters>
  250. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/背景图片.png" />
  251. </Style.Setters>
  252. </Style>
  253. <Style x:Key="TitleImage" TargetType="Image">
  254. <Style.Setters>
  255. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/hbl.ico" />
  256. </Style.Setters>
  257. </Style>
  258. <Style x:Key="timeImage" TargetType="Image">
  259. <Style.Setters>
  260. <Setter Property="Width" Value="20" />
  261. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/日期1.png" />
  262. </Style.Setters>
  263. </Style>
  264. <Style x:Key="image文字" TargetType="Image">
  265. <Style.Setters>
  266. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/文字.png" />
  267. </Style.Setters>
  268. </Style>
  269. <Style x:Key="image底部科技背景" TargetType="Image">
  270. <Style.Setters>
  271. <Setter Property="VerticalAlignment" Value="Bottom" />
  272. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/底部背景.png" />
  273. </Style.Setters>
  274. </Style>
  275. <Style x:Key="image个人信息" TargetType="Image">
  276. <Style.Setters>
  277. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/个人信息.png" />
  278. </Style.Setters>
  279. </Style>
  280. <Style x:Key="image维护" TargetType="Image">
  281. <Style.Setters>
  282. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png" />
  283. </Style.Setters>
  284. </Style>
  285. <Style x:Key="image标题其他" TargetType="Image">
  286. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部矩形.png" />
  287. <Setter Property="Height" Value="12" />
  288. </Style>
  289. <Style x:Key="image告警" TargetType="Image">
  290. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警.png" />
  291. <Setter Property="Height" Value="24" />
  292. </Style>
  293. <Style x:Key="image有告警" TargetType="Image">
  294. <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png" />
  295. <Setter Property="Height" Value="30" />
  296. </Style>
  297. <!--#endregion-->
  298. <!--#region Border-->
  299. <Style x:Key="FromBJ" TargetType="Border">
  300. <Style.Setters>
  301. <Setter Property="Background">
  302. <Setter.Value>
  303. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/窗体背景.png" />
  304. </Setter.Value>
  305. </Setter>
  306. </Style.Setters>
  307. </Style>
  308. <Style x:Key="button_no" TargetType="Border">
  309. <Style.Setters>
  310. <Setter Property="Background">
  311. <Setter.Value>
  312. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_No.png" />
  313. </Setter.Value>
  314. </Setter>
  315. </Style.Setters>
  316. </Style>
  317. <Style x:Key="button_select" TargetType="Border">
  318. <Style.Setters>
  319. <Setter Property="Background">
  320. <Setter.Value>
  321. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_Select.png" />
  322. </Setter.Value>
  323. </Setter>
  324. </Style.Setters>
  325. </Style>
  326. <Style x:Key="bordertopL" TargetType="Border">
  327. <Style.Setters>
  328. <Setter Property="Height" Value="80" />
  329. <Setter Property="Width" Value="300" />
  330. <Setter Property="VerticalAlignment" Value="Top" />
  331. <Setter Property="HorizontalAlignment" Value="Left" />
  332. <Setter Property="Background">
  333. <Setter.Value>
  334. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
  335. </Setter.Value>
  336. </Setter>
  337. </Style.Setters>
  338. </Style>
  339. <Style x:Key="border阴影边框" TargetType="Border">
  340. <Style.Setters>
  341. <Setter Property="Height" Value="50" />
  342. <Setter Property="VerticalAlignment" Value="Top" />
  343. <Setter Property="Background">
  344. <Setter.Value>
  345. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
  346. </Setter.Value>
  347. </Setter>
  348. </Style.Setters>
  349. </Style>
  350. <Style x:Key="border阴影边框扩展" TargetType="Border">
  351. <Style.Setters>
  352. <Setter Property="Background">
  353. <Setter.Value>
  354. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
  355. </Setter.Value>
  356. </Setter>
  357. </Style.Setters>
  358. </Style>
  359. <Style x:Key="border边角" TargetType="Border">
  360. <Style.Setters>
  361. <Setter Property="Background">
  362. <Setter.Value>
  363. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边角.png" />
  364. </Setter.Value>
  365. </Setter>
  366. </Style.Setters>
  367. </Style>
  368. <Style x:Key="bordertop矩形" TargetType="Border">
  369. <Style.Setters>
  370. <Setter Property="Background">
  371. <Setter.Value>
  372. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
  373. </Setter.Value>
  374. </Setter>
  375. </Style.Setters>
  376. </Style>
  377. <Style x:Key="bordertopTitle" TargetType="Border">
  378. <Style.Setters>
  379. <Setter Property="Height" Value="100" />
  380. <Setter Property="Background">
  381. <Setter.Value>
  382. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
  383. </Setter.Value>
  384. </Setter>
  385. </Style.Setters>
  386. </Style>
  387. <Style x:Key="borderFromTitle" TargetType="Border">
  388. <Style.Setters>
  389. <Setter Property="Background">
  390. <Setter.Value>
  391. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/tittle.png" />
  392. </Setter.Value>
  393. </Setter>
  394. </Style.Setters>
  395. </Style>
  396. <Style x:Key="border窗体背景1" TargetType="Border">
  397. <Style.Setters>
  398. <Setter Property="Background">
  399. <Setter.Value>
  400. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景1.png" />
  401. </Setter.Value>
  402. </Setter>
  403. </Style.Setters>
  404. </Style>
  405. <Style x:Key="border窗体背景2" TargetType="Border">
  406. <Style.Setters>
  407. <Setter Property="Background">
  408. <Setter.Value>
  409. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景2.png" Stretch="Uniform" />
  410. </Setter.Value>
  411. </Setter>
  412. </Style.Setters>
  413. </Style>
  414. <Style x:Key="borderPop_bg" TargetType="Border">
  415. <Style.Setters>
  416. <Setter Property="Background">
  417. <Setter.Value>
  418. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  419. </Setter.Value>
  420. </Setter>
  421. </Style.Setters>
  422. </Style>
  423. <Style x:Key="border背景two" TargetType="Border">
  424. <Style.Setters>
  425. <Setter Property="Background">
  426. <Setter.Value>
  427. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景2.png" />
  428. </Setter.Value>
  429. </Setter>
  430. </Style.Setters>
  431. </Style>
  432. <Style x:Key="border窗体背景3" TargetType="Border">
  433. <Style.Setters>
  434. <Setter Property="Background">
  435. <Setter.Value>
  436. <ImageBrush
  437. ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景3.png"
  438. Opacity="1"
  439. Stretch="Fill"
  440. TileMode="FlipX"
  441. Viewbox="0,0,1,1"
  442. ViewboxUnits="RelativeToBoundingBox" />
  443. </Setter.Value>
  444. </Setter>
  445. </Style.Setters>
  446. </Style>
  447. <Style x:Key="border窗体背景4" TargetType="Border">
  448. <Style.Setters>
  449. <Setter Property="Background">
  450. <Setter.Value>
  451. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景4.png" />
  452. </Setter.Value>
  453. </Setter>
  454. </Style.Setters>
  455. </Style>
  456. <Style x:Key="border窗体背景5" TargetType="Border">
  457. <Style.Setters>
  458. <Setter Property="Background">
  459. <Setter.Value>
  460. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景5.png" />
  461. </Setter.Value>
  462. </Setter>
  463. </Style.Setters>
  464. </Style>
  465. <Style x:Key="border窗体背景6" TargetType="Border">
  466. <Style.Setters>
  467. <Setter Property="Background">
  468. <Setter.Value>
  469. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景6.png" />
  470. </Setter.Value>
  471. </Setter>
  472. </Style.Setters>
  473. </Style>
  474. <Style x:Key="border窗体背景7" TargetType="Border">
  475. <Style.Setters>
  476. <Setter Property="Background">
  477. <Setter.Value>
  478. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景7.png" Stretch="None" />
  479. </Setter.Value>
  480. </Setter>
  481. </Style.Setters>
  482. </Style>
  483. <Style x:Key="border圆角矩形" TargetType="Border">
  484. <Style.Setters>
  485. <Setter Property="BorderThickness" Value="3" />
  486. <Setter Property="Background">
  487. <Setter.Value>
  488. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/圆角矩形.png" />
  489. </Setter.Value>
  490. </Setter>
  491. </Style.Setters>
  492. </Style>
  493. <Style x:Key="border不规则矩形" TargetType="Border">
  494. <Style.Setters>
  495. <Setter Property="BorderThickness" Value="0.5" />
  496. <Setter Property="Background">
  497. <Setter.Value>
  498. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/不规则矩形.png" />
  499. </Setter.Value>
  500. </Setter>
  501. </Style.Setters>
  502. </Style>
  503. <Style x:Key="border矩形" TargetType="Border">
  504. <Style.Setters>
  505. <Setter Property="Background">
  506. <Setter.Value>
  507. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  508. </Setter.Value>
  509. </Setter>
  510. </Style.Setters>
  511. </Style>
  512. <Style x:Key="border顶部背景" TargetType="Border">
  513. <Style.Setters>
  514. <Setter Property="Background">
  515. <Setter.Value>
  516. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部背景.png" />
  517. </Setter.Value>
  518. </Setter>
  519. <Setter Property="BorderBrush">
  520. <Setter.Value>
  521. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
  522. </Setter.Value>
  523. </Setter>
  524. <Setter Property="BorderThickness" Value="0,0,0,1" />
  525. </Style.Setters>
  526. </Style>
  527. <Style x:Key="border标题背景" TargetType="Border">
  528. <Style.Setters>
  529. <Setter Property="Background">
  530. <Setter.Value>
  531. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/标题背景.png" />
  532. </Setter.Value>
  533. </Setter>
  534. </Style.Setters>
  535. </Style>
  536. <Style x:Key="border主窗体背景" TargetType="Border">
  537. <Style.Setters>
  538. <Setter Property="Background">
  539. <Setter.Value>
  540. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景.png" />
  541. </Setter.Value>
  542. </Setter>
  543. </Style.Setters>
  544. </Style>
  545. <Style x:Key="border界面背景" TargetType="Border">
  546. <Style.Setters>
  547. <Setter Property="Background">
  548. <Setter.Value>
  549. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/窗体背景2.png" />
  550. </Setter.Value>
  551. </Setter>
  552. </Style.Setters>
  553. </Style>
  554. <Style x:Key="border顶部标题背景" TargetType="Border">
  555. <Style.Setters>
  556. <Setter Property="Background">
  557. <Setter.Value>
  558. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部.png" />
  559. </Setter.Value>
  560. </Setter>
  561. </Style.Setters>
  562. </Style>
  563. <Style x:Key="border竖线" TargetType="Border">
  564. <Style.Setters>
  565. <Setter Property="Width" Value="1" />
  566. <Setter Property="Height" Value="40" />
  567. <Setter Property="BorderThickness" Value="0" />
  568. <Setter Property="Margin" Value="5" />
  569. <Setter Property="Background">
  570. <Setter.Value>
  571. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/竖线.png" />
  572. </Setter.Value>
  573. </Setter>
  574. </Style.Setters>
  575. </Style>
  576. <Style x:Key="border内部" TargetType="Border">
  577. <Style.Setters>
  578. <Setter Property="Width" Value="320" />
  579. <Setter Property="HorizontalAlignment" Value="Stretch" />
  580. <Setter Property="VerticalAlignment" Value="Stretch" />
  581. <Setter Property="BorderThickness" Value="0" />
  582. <Setter Property="Margin" Value="5" />
  583. <Setter Property="Background">
  584. <Setter.Value>
  585. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/内部.png" />
  586. </Setter.Value>
  587. </Setter>
  588. </Style.Setters>
  589. </Style>
  590. <Style x:Key="border矩形2" TargetType="Border">
  591. <Style.Setters>
  592. <Setter Property="Margin" Value="0,0,10,0" />
  593. <Setter Property="VerticalAlignment" Value="Top" />
  594. <Setter Property="HorizontalAlignment" Value="Left" />
  595. <Setter Property="Width" Value="92" />
  596. <Setter Property="Height" Value="46" />
  597. <Setter Property="BorderThickness" Value="0" />
  598. <Setter Property="Background">
  599. <Setter.Value>
  600. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形1.png" />
  601. </Setter.Value>
  602. </Setter>
  603. </Style.Setters>
  604. </Style>
  605. <Style x:Key="border矢量智能对象" TargetType="Border">
  606. <Style.Setters>
  607. <Setter Property="Width" Value="1" />
  608. <Setter Property="Height" Value="40" />
  609. <Setter Property="BorderThickness" Value="0" />
  610. <Setter Property="Margin" Value="5" />
  611. <Setter Property="Background">
  612. <Setter.Value>
  613. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景矢量/矢量智能对象.png" />
  614. </Setter.Value>
  615. </Setter>
  616. </Style.Setters>
  617. </Style>
  618. <Style x:Key="border边框" TargetType="Border">
  619. <Style.Setters>
  620. <Setter Property="Background">
  621. <Setter.Value>
  622. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形样式.png" />
  623. </Setter.Value>
  624. </Setter>
  625. </Style.Setters>
  626. </Style>
  627. <Style x:Key="border边框2" TargetType="Border">
  628. <Style.Setters>
  629. <Setter Property="Background">
  630. <Setter.Value>
  631. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边框效果2.png" Stretch="Fill" />
  632. </Setter.Value>
  633. </Setter>
  634. </Style.Setters>
  635. </Style>
  636. <Style x:Key="border右下" TargetType="Border">
  637. <Style.Setters>
  638. <Setter Property="HorizontalAlignment" Value="Right" />
  639. <Setter Property="VerticalAlignment" Value="Bottom" />
  640. <Setter Property="Height" Value="23" />
  641. <Setter Property="Width" Value="22" />
  642. <Setter Property="Background">
  643. <Setter.Value>
  644. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右下.png" Stretch="None" />
  645. </Setter.Value>
  646. </Setter>
  647. </Style.Setters>
  648. </Style>
  649. <Style x:Key="border左下" TargetType="Border">
  650. <Style.Setters>
  651. <Setter Property="HorizontalAlignment" Value="Left" />
  652. <Setter Property="VerticalAlignment" Value="Bottom" />
  653. <Setter Property="Height" Value="22" />
  654. <Setter Property="Width" Value="23" />
  655. <Setter Property="Background">
  656. <Setter.Value>
  657. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左下.png" Stretch="None" />
  658. </Setter.Value>
  659. </Setter>
  660. </Style.Setters>
  661. </Style>
  662. <Style x:Key="border左上" TargetType="Border">
  663. <Style.Setters>
  664. <Setter Property="HorizontalAlignment" Value="Left" />
  665. <Setter Property="VerticalAlignment" Value="Top" />
  666. <Setter Property="Height" Value="22" />
  667. <Setter Property="Width" Value="23" />
  668. <Setter Property="Background">
  669. <Setter.Value>
  670. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左边.png" Stretch="None" />
  671. </Setter.Value>
  672. </Setter>
  673. </Style.Setters>
  674. </Style>
  675. <Style x:Key="border右上" TargetType="Border">
  676. <Style.Setters>
  677. <Setter Property="HorizontalAlignment" Value="Right" />
  678. <Setter Property="VerticalAlignment" Value="Top" />
  679. <Setter Property="Height" Value="23" />
  680. <Setter Property="Width" Value="22" />
  681. <Setter Property="Background">
  682. <Setter.Value>
  683. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右上.png" Stretch="None" />
  684. </Setter.Value>
  685. </Setter>
  686. </Style.Setters>
  687. </Style>
  688. <!--#endregion-->
  689. <!--#region Button-->
  690. <Style x:Key="TitleBarStyle" TargetType="Button">
  691. <Setter Property="Foreground" Value="White" />
  692. <Setter Property="FontSize" Value="20" />
  693. <Setter Property="FontFamily" Value="/BPASmartClient.CustomResource;component/Fonts/#iconfont" />
  694. <Setter Property="Template">
  695. <Setter.Value>
  696. <ControlTemplate TargetType="Button">
  697. <Border Name="TitleBarBr" Background="Transparent">
  698. <ContentPresenter
  699. Margin="{TemplateBinding Margin}"
  700. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  701. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  702. </Border>
  703. <ControlTemplate.Triggers>
  704. <Trigger Property="IsMouseOver" Value="true">
  705. <Setter TargetName="TitleBarBr" Property="Background" Value="#22ffffff" />
  706. </Trigger>
  707. </ControlTemplate.Triggers>
  708. </ControlTemplate>
  709. </Setter.Value>
  710. </Setter>
  711. </Style>
  712. <Style x:Key="CommonBtnStyle退出按钮" TargetType="Button">
  713. <Style.Setters>
  714. <Setter Property="VerticalContentAlignment" Value="Center" />
  715. <Setter Property="HorizontalContentAlignment" Value="Center" />
  716. <Setter Property="Cursor" Value="Hand" />
  717. <Setter Property="Width" Value="65" />
  718. <Setter Property="Height" Value="24" />
  719. <Setter Property="HorizontalAlignment" Value="Right" />
  720. <Setter Property="Template">
  721. <Setter.Value>
  722. <ControlTemplate TargetType="Button">
  723. <!--<ControlTemplate.Resources>
  724. <Storyboard x:Key="OnMouseEnter1">
  725. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  726. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
  727. </ColorAnimationUsingKeyFrames>
  728. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  729. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
  730. </ColorAnimationUsingKeyFrames>
  731. </Storyboard>
  732. </ControlTemplate.Resources>-->
  733. <Border x:Name="BD" CornerRadius="2">
  734. <Border.Background>
  735. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/退出按钮.png" />
  736. </Border.Background>
  737. <StackPanel
  738. Margin="5"
  739. HorizontalAlignment="Center"
  740. Orientation="Horizontal">
  741. <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
  742. <TextBlock
  743. x:Name="textBlock"
  744. Margin="5,0,0,0"
  745. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  746. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  747. FontSize="14"
  748. Foreground="#A5FFFFFF"
  749. Text="{TemplateBinding Content}" />
  750. </StackPanel>
  751. <VisualStateManager.VisualStateGroups>
  752. <VisualStateGroup x:Name="CommonStates">
  753. <VisualState x:Name="Normal" />
  754. <VisualState x:Name="MouseOver">
  755. <Storyboard>
  756. <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
  757. <EasingColorKeyFrame KeyTime="0" Value="White" />
  758. </ColorAnimationUsingKeyFrames>
  759. <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  760. <EasingColorKeyFrame KeyTime="0" Value="#FF135EC2"/>
  761. </ColorAnimationUsingKeyFrames>
  762. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="BD">
  763. <EasingDoubleKeyFrame KeyTime="0" Value="0.007"/>
  764. </DoubleAnimationUsingKeyFrames>
  765. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  766. <EasingColorKeyFrame KeyTime="0" Value="#FF139DDB"/>
  767. </ColorAnimationUsingKeyFrames>-->
  768. </Storyboard>
  769. </VisualState>
  770. <VisualState x:Name="Pressed" />
  771. <VisualState x:Name="Disabled" />
  772. </VisualStateGroup>
  773. </VisualStateManager.VisualStateGroups>
  774. </Border>
  775. </ControlTemplate>
  776. </Setter.Value>
  777. </Setter>
  778. </Style.Setters>
  779. </Style>
  780. <Style x:Key="CommonBtnStyle返回按钮" TargetType="Button">
  781. <Style.Setters>
  782. <Setter Property="VerticalContentAlignment" Value="Center" />
  783. <Setter Property="HorizontalContentAlignment" Value="Center" />
  784. <Setter Property="Cursor" Value="Hand" />
  785. <Setter Property="Width" Value="65" />
  786. <Setter Property="Height" Value="24" />
  787. <Setter Property="HorizontalAlignment" Value="Right" />
  788. <Setter Property="Template">
  789. <Setter.Value>
  790. <ControlTemplate TargetType="Button">
  791. <Border x:Name="BD" CornerRadius="2">
  792. <Border.Background>
  793. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/Tab/Tab_NoWZBJ.png" />
  794. </Border.Background>
  795. <StackPanel
  796. Margin="5"
  797. HorizontalAlignment="Center"
  798. Orientation="Horizontal">
  799. <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
  800. <TextBlock
  801. x:Name="textBlock"
  802. Margin="5,0,0,0"
  803. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  804. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  805. Foreground="#A5FFFFFF"
  806. Text="{TemplateBinding Content}" />
  807. </StackPanel>
  808. <VisualStateManager.VisualStateGroups>
  809. <VisualStateGroup x:Name="CommonStates">
  810. <VisualState x:Name="Normal" />
  811. <VisualState x:Name="MouseOver">
  812. <Storyboard>
  813. <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
  814. <EasingColorKeyFrame KeyTime="0" Value="White" />
  815. </ColorAnimationUsingKeyFrames>
  816. </Storyboard>
  817. </VisualState>
  818. <VisualState x:Name="Pressed" />
  819. <VisualState x:Name="Disabled" />
  820. </VisualStateGroup>
  821. </VisualStateManager.VisualStateGroups>
  822. </Border>
  823. </ControlTemplate>
  824. </Setter.Value>
  825. </Setter>
  826. </Style.Setters>
  827. </Style>
  828. <Style x:Key="CommonBtn_1" TargetType="Button">
  829. <Style.Setters>
  830. <Setter Property="VerticalContentAlignment" Value="Center" />
  831. <Setter Property="Cursor" Value="Hand" />
  832. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  833. <Setter Property="Width" Value="65" />
  834. <Setter Property="Height" Value="24" />
  835. <Setter Property="Template">
  836. <Setter.Value>
  837. <ControlTemplate TargetType="Button">
  838. <ControlTemplate.Resources>
  839. <Storyboard x:Key="OnMouseEnter1">
  840. <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
  841. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB" />
  842. </ColorAnimationUsingKeyFrames>
  843. <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
  844. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2" />
  845. </ColorAnimationUsingKeyFrames>
  846. </Storyboard>
  847. </ControlTemplate.Resources>
  848. <Border
  849. x:Name="BD"
  850. Background="Transparent"
  851. BorderBrush="#05408a"
  852. BorderThickness="1"
  853. CornerRadius="12">
  854. <TextBlock
  855. x:Name="textBlock"
  856. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  857. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  858. FontSize="12"
  859. Foreground="{DynamicResource foreground}"
  860. Text="{TemplateBinding Content}" />
  861. </Border>
  862. <ControlTemplate.Triggers>
  863. <Trigger Property="IsMouseOver" Value="true">
  864. <Setter TargetName="BD" Property="Background" Value="#009dff" />
  865. <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource foreground}" />
  866. </Trigger>
  867. <Trigger Property="IsEnabled" Value="False">
  868. <Setter TargetName="BD" Property="Background" Value="#ff55" />
  869. </Trigger>
  870. </ControlTemplate.Triggers>
  871. </ControlTemplate>
  872. </Setter.Value>
  873. </Setter>
  874. </Style.Setters>
  875. </Style>
  876. <Style x:Key="CommonBtn_返回" TargetType="Button">
  877. <Style.Setters>
  878. <Setter Property="VerticalContentAlignment" Value="Center" />
  879. <Setter Property="Cursor" Value="Hand" />
  880. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  881. <Setter Property="Width" Value="68" />
  882. <Setter Property="Height" Value="25" />
  883. <Setter Property="Template">
  884. <Setter.Value>
  885. <ControlTemplate TargetType="Button">
  886. <Border x:Name="BD" Cursor="Hand">
  887. <StackPanel
  888. Margin="5,0,10,0"
  889. HorizontalAlignment="Right"
  890. Orientation="Horizontal">
  891. <Border Width="16" Margin="5">
  892. <Border.Background>
  893. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
  894. </Border.Background>
  895. </Border>
  896. <TextBlock
  897. x:Name="textBlock"
  898. VerticalAlignment="Center"
  899. FontSize="14"
  900. Foreground="#4fade8"
  901. Text="{TemplateBinding Content}" />
  902. <!-- Text="{TemplateBinding Content}" -->
  903. </StackPanel>
  904. </Border>
  905. <ControlTemplate.Triggers>
  906. <Trigger Property="IsMouseOver" Value="true">
  907. <Setter TargetName="BD" Property="Background">
  908. <Setter.Value>
  909. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
  910. </Setter.Value>
  911. </Setter>
  912. <Setter TargetName="textBlock" Property="Foreground" Value="#4fade8" />
  913. </Trigger>
  914. <Trigger Property="IsMouseOver" Value="False">
  915. <Setter TargetName="BD" Property="Background">
  916. <Setter.Value>
  917. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
  918. </Setter.Value>
  919. </Setter>
  920. <Setter TargetName="textBlock" Property="Foreground" Value="#4fade8" />
  921. </Trigger>
  922. <Trigger Property="IsEnabled" Value="False">
  923. <Setter TargetName="BD" Property="Background">
  924. <Setter.Value>
  925. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  926. </Setter.Value>
  927. </Setter>
  928. <Setter TargetName="textBlock" Property="Foreground" Value="#3afdff" />
  929. </Trigger>
  930. </ControlTemplate.Triggers>
  931. </ControlTemplate>
  932. </Setter.Value>
  933. </Setter>
  934. </Style.Setters>
  935. </Style>
  936. <Style TargetType="{x:Type Separator}">
  937. <Setter Property="Height" Value="1" />
  938. <Setter Property="Margin" Value="0,4,0,4" />
  939. <Setter Property="Template">
  940. <Setter.Value>
  941. <ControlTemplate TargetType="{x:Type Separator}">
  942. <Border>
  943. <Border.Background>
  944. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
  945. </Border.Background>
  946. </Border>
  947. </ControlTemplate>
  948. </Setter.Value>
  949. </Setter>
  950. </Style>
  951. <Style x:Key="CommonBtn_功能节点" TargetType="Button">
  952. <Style.Setters>
  953. <Setter Property="VerticalContentAlignment" Value="Center" />
  954. <Setter Property="Cursor" Value="Hand" />
  955. <Setter Property="Margin" Value="10,5,10,5" />
  956. <Setter Property="Template">
  957. <Setter.Value>
  958. <ControlTemplate TargetType="Button">
  959. <StackPanel x:Name="BD" Orientation="Horizontal">
  960. <Image
  961. Width="24"
  962. Margin="5"
  963. Source="/BPASmartClient.CustomResource;component/Image/临时模板.png" />
  964. <TextBlock
  965. x:Name="textBlock"
  966. Margin="10,0,0,0"
  967. HorizontalAlignment="Left"
  968. VerticalAlignment="Center"
  969. FontSize="12"
  970. Foreground="#00c1c3"
  971. Text="{TemplateBinding Content}" />
  972. <TextBlock
  973. x:Name="tex2tBlock"
  974. VerticalAlignment="Center"
  975. FontSize="14"
  976. Foreground="#4fade8"
  977. Text="{TemplateBinding Content}"
  978. Visibility="Collapsed" />
  979. </StackPanel>
  980. <ControlTemplate.Triggers>
  981. <Trigger Property="IsMouseOver" Value="true">
  982. <Setter TargetName="BD" Property="Background">
  983. <Setter.Value>
  984. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  985. </Setter.Value>
  986. </Setter>
  987. </Trigger>
  988. <Trigger Property="IsMouseOver" Value="False">
  989. <Setter TargetName="BD" Property="Background">
  990. <Setter.Value>
  991. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  992. </Setter.Value>
  993. </Setter>
  994. </Trigger>
  995. </ControlTemplate.Triggers>
  996. </ControlTemplate>
  997. </Setter.Value>
  998. </Setter>
  999. </Style.Setters>
  1000. </Style>
  1001. <Style x:Key="CommonBtn_产品制作" TargetType="Button">
  1002. <Style.Setters>
  1003. <Setter Property="VerticalContentAlignment" Value="Center" />
  1004. <Setter Property="Cursor" Value="Hand" />
  1005. <Setter Property="Template">
  1006. <Setter.Value>
  1007. <ControlTemplate TargetType="Button">
  1008. <StackPanel x:Name="BD" Margin="5">
  1009. <Image
  1010. Width="24"
  1011. Margin="5,10,5,0"
  1012. Source="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
  1013. <TextBlock
  1014. x:Name="textBlock"
  1015. VerticalAlignment="Center"
  1016. FontSize="14"
  1017. Foreground="#4fade8"
  1018. Text="{TemplateBinding Content}"
  1019. Visibility="Collapsed" />
  1020. <Separator Margin="0,10,0,0" />
  1021. </StackPanel>
  1022. <ControlTemplate.Triggers>
  1023. <Trigger Property="IsMouseOver" Value="true">
  1024. <Setter TargetName="BD" Property="Background">
  1025. <Setter.Value>
  1026. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1027. </Setter.Value>
  1028. </Setter>
  1029. </Trigger>
  1030. <Trigger Property="IsMouseOver" Value="False">
  1031. <Setter TargetName="BD" Property="Background">
  1032. <Setter.Value>
  1033. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1034. </Setter.Value>
  1035. </Setter>
  1036. </Trigger>
  1037. </ControlTemplate.Triggers>
  1038. </ControlTemplate>
  1039. </Setter.Value>
  1040. </Setter>
  1041. </Style.Setters>
  1042. </Style>
  1043. <Style x:Key="CommonBtn_功能列表" TargetType="Button">
  1044. <Style.Setters>
  1045. <Setter Property="VerticalContentAlignment" Value="Center" />
  1046. <Setter Property="Cursor" Value="Hand" />
  1047. <Setter Property="Template">
  1048. <Setter.Value>
  1049. <ControlTemplate TargetType="Button">
  1050. <StackPanel x:Name="BD" Margin="5">
  1051. <Image
  1052. Width="24"
  1053. Margin="5,10,5,0"
  1054. Source="/BPASmartClient.CustomResource;component/Image/功能列表.png" />
  1055. <TextBlock
  1056. x:Name="textBlock"
  1057. VerticalAlignment="Center"
  1058. FontSize="14"
  1059. Foreground="#4fade8"
  1060. Text="{TemplateBinding Content}"
  1061. Visibility="Collapsed" />
  1062. <Separator Margin="0,10,0,0" />
  1063. </StackPanel>
  1064. <ControlTemplate.Triggers>
  1065. <Trigger Property="IsMouseOver" Value="true">
  1066. <Setter TargetName="BD" Property="Background">
  1067. <Setter.Value>
  1068. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1069. </Setter.Value>
  1070. </Setter>
  1071. </Trigger>
  1072. <Trigger Property="IsMouseOver" Value="False">
  1073. <Setter TargetName="BD" Property="Background">
  1074. <Setter.Value>
  1075. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1076. </Setter.Value>
  1077. </Setter>
  1078. </Trigger>
  1079. </ControlTemplate.Triggers>
  1080. </ControlTemplate>
  1081. </Setter.Value>
  1082. </Setter>
  1083. </Style.Setters>
  1084. </Style>
  1085. <Style x:Key="CommonBtn_维护" TargetType="Button">
  1086. <Style.Setters>
  1087. <Setter Property="VerticalContentAlignment" Value="Center" />
  1088. <Setter Property="Cursor" Value="Hand" />
  1089. <Setter Property="Template">
  1090. <Setter.Value>
  1091. <ControlTemplate TargetType="Button">
  1092. <StackPanel x:Name="BD" Margin="5">
  1093. <Image
  1094. Width="24"
  1095. Margin="5,10,5,0"
  1096. Source="/BPASmartClient.CustomResource;component/Image/维护.png" />
  1097. <TextBlock
  1098. x:Name="textBlock"
  1099. VerticalAlignment="Center"
  1100. FontSize="14"
  1101. Foreground="#4fade8"
  1102. Text="{TemplateBinding Content}"
  1103. Visibility="Collapsed" />
  1104. <Separator Margin="0,10,0,0" />
  1105. </StackPanel>
  1106. <ControlTemplate.Triggers>
  1107. <Trigger Property="IsMouseOver" Value="true">
  1108. <Setter TargetName="BD" Property="Background">
  1109. <Setter.Value>
  1110. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
  1111. </Setter.Value>
  1112. </Setter>
  1113. </Trigger>
  1114. <Trigger Property="IsMouseOver" Value="False">
  1115. <Setter TargetName="BD" Property="Background">
  1116. <Setter.Value>
  1117. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
  1118. </Setter.Value>
  1119. </Setter>
  1120. </Trigger>
  1121. </ControlTemplate.Triggers>
  1122. </ControlTemplate>
  1123. </Setter.Value>
  1124. </Setter>
  1125. </Style.Setters>
  1126. </Style>
  1127. <Style TargetType="Button">
  1128. <Style.Setters>
  1129. <Setter Property="VerticalContentAlignment" Value="Center" />
  1130. <Setter Property="Cursor" Value="Hand" />
  1131. <Setter Property="Foreground" Value="{DynamicResource foreground}" />
  1132. <Setter Property="Width" Value="69" />
  1133. <Setter Property="Height" Value="25" />
  1134. <Setter Property="Template">
  1135. <Setter.Value>
  1136. <ControlTemplate TargetType="Button">
  1137. <!--<ControlTemplate.Resources>
  1138. <Storyboard x:Key="OnMouseEnter1">
  1139. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
  1140. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
  1141. </ColorAnimationUsingKeyFrames>
  1142. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
  1143. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
  1144. </ColorAnimationUsingKeyFrames>
  1145. </Storyboard>
  1146. </ControlTemplate.Resources>-->
  1147. <Border x:Name="BD" Cursor="Hand">
  1148. <TextBlock
  1149. x:Name="textBlock"
  1150. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  1151. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  1152. FontSize="12"
  1153. Foreground="{DynamicResource foreground}"
  1154. Text="{TemplateBinding Content}" />
  1155. </Border>
  1156. <ControlTemplate.Triggers>
  1157. <Trigger Property="IsMouseOver" Value="true">
  1158. <Setter TargetName="BD" Property="Background">
  1159. <Setter.Value>
  1160. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1161. </Setter.Value>
  1162. </Setter>
  1163. <Setter TargetName="textBlock" Property="Foreground" Value="White" />
  1164. </Trigger>
  1165. <Trigger Property="IsMouseOver" Value="False">
  1166. <Setter TargetName="BD" Property="Background">
  1167. <Setter.Value>
  1168. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
  1169. </Setter.Value>
  1170. </Setter>
  1171. <Setter TargetName="textBlock" Property="Foreground" Value="#FFD7DCE0" />
  1172. </Trigger>
  1173. <Trigger Property="IsEnabled" Value="False">
  1174. <Setter TargetName="BD" Property="Background">
  1175. <Setter.Value>
  1176. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
  1177. </Setter.Value>
  1178. </Setter>
  1179. <Setter TargetName="textBlock" Property="Foreground" Value="#3afdff" />
  1180. </Trigger>
  1181. </ControlTemplate.Triggers>
  1182. </ControlTemplate>
  1183. </Setter.Value>
  1184. </Setter>
  1185. </Style.Setters>
  1186. </Style>
  1187. <!--#endregion-->
  1188. <!--#region TextBox-->
  1189. <Style
  1190. x:Key="TextBoxStyle人员"
  1191. BasedOn="{x:Null}"
  1192. TargetType="{x:Type TextBox}">
  1193. <Setter Property="Foreground" Value="#A4EBF7" />
  1194. <Setter Property="Background">
  1195. <Setter.Value>
  1196. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
  1197. </Setter.Value>
  1198. </Setter>
  1199. <Setter Property="FontSize" Value="14" />
  1200. <Setter Property="TextWrapping" Value="NoWrap" />
  1201. <Setter Property="BorderBrush" Value="Transparent" />
  1202. <Setter Property="BorderThickness" Value="1" />
  1203. <Setter Property="Padding" Value="1" />
  1204. <Setter Property="AllowDrop" Value="true" />
  1205. <Setter Property="HorizontalAlignment" Value="Left" />
  1206. <Setter Property="VerticalAlignment" Value="Center" />
  1207. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1208. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1209. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1210. <Setter Property="Height" Value="35" />
  1211. <Setter Property="Width" Value="auto" />
  1212. <Setter Property="MinWidth" Value="200" />
  1213. <Setter Property="Template">
  1214. <Setter.Value>
  1215. <ControlTemplate TargetType="{x:Type TextBox}">
  1216. <Themes:ListBoxChrome
  1217. x:Name="Bd"
  1218. Background="{TemplateBinding Background}"
  1219. BorderBrush="{TemplateBinding BorderBrush}"
  1220. BorderThickness="{TemplateBinding BorderThickness}"
  1221. RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
  1222. RenderMouseOver="{TemplateBinding IsMouseOver}"
  1223. SnapsToDevicePixels="true">
  1224. <Grid>
  1225. <Grid.ColumnDefinitions>
  1226. <ColumnDefinition Width="auto" />
  1227. <ColumnDefinition />
  1228. </Grid.ColumnDefinitions>
  1229. <Image
  1230. Width="20"
  1231. Height="Auto"
  1232. Margin="20,0,0,0"
  1233. HorizontalAlignment="Right"
  1234. Cursor="Hand"
  1235. Source="Image/搜索按钮.png"
  1236. Tag="Search" />
  1237. <ScrollViewer
  1238. x:Name="PART_ContentHost"
  1239. VerticalAlignment="Center"
  1240. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1241. <!--<local:ButtonEx Grid.Column="1" ButtonType="Icon" Icon="Images/search.png" Cursor="Hand" Margin="3" Width="{Binding ElementName=PART_ContentHost, Path=Height}" Height="{Binding ElementName=PART_ContentHost, Path=Height}" Click="Button_SearchMBK_Click"/>-->
  1242. </Grid>
  1243. </Themes:ListBoxChrome>
  1244. <ControlTemplate.Triggers>
  1245. <Trigger Property="IsEnabled" Value="false">
  1246. <Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
  1247. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
  1248. </Trigger>
  1249. </ControlTemplate.Triggers>
  1250. </ControlTemplate>
  1251. </Setter.Value>
  1252. </Setter>
  1253. <Style.Triggers>
  1254. <MultiTrigger>
  1255. <MultiTrigger.Conditions>
  1256. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1257. <Condition Property="IsSelectionActive" Value="false" />
  1258. </MultiTrigger.Conditions>
  1259. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1260. </MultiTrigger>
  1261. </Style.Triggers>
  1262. </Style>
  1263. <Style
  1264. x:Key="TextBoxStyle搜索框"
  1265. BasedOn="{x:Null}"
  1266. TargetType="{x:Type TextBox}">
  1267. <Setter Property="Foreground" Value="#A4EBF7" />
  1268. <Setter Property="FontSize" Value="14" />
  1269. <Setter Property="TextWrapping" Value="NoWrap" />
  1270. <Setter Property="BorderBrush" Value="Transparent" />
  1271. <Setter Property="BorderThickness" Value="1" />
  1272. <Setter Property="Margin" Value="10,0,0,0" />
  1273. <Setter Property="AllowDrop" Value="true" />
  1274. <Setter Property="CaretBrush" Value="Aqua" />
  1275. <Setter Property="Padding" Value="1" />
  1276. <Setter Property="HorizontalAlignment" Value="Left" />
  1277. <Setter Property="VerticalAlignment" Value="Center" />
  1278. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1279. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1280. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1281. <Setter Property="Height" Value="40" />
  1282. <Setter Property="Width" Value="135" />
  1283. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1284. <Setter Property="Template">
  1285. <Setter.Value>
  1286. <ControlTemplate TargetType="{x:Type TextBox}">
  1287. <Border x:Name="Bd" VerticalAlignment="Center">
  1288. <Border.Background>
  1289. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
  1290. </Border.Background>
  1291. <Grid>
  1292. <ScrollViewer
  1293. x:Name="PART_ContentHost"
  1294. VerticalAlignment="Center"
  1295. HorizontalScrollBarVisibility="Hidden"
  1296. VerticalScrollBarVisibility="Hidden" />
  1297. <Image
  1298. Width="20"
  1299. Margin="10,3,3,3"
  1300. HorizontalAlignment="Left"
  1301. Source="/BPASmartClient.CustomResource;component/Image/搜索按钮.png"
  1302. Stretch="Uniform" />
  1303. </Grid>
  1304. </Border>
  1305. <ControlTemplate.Triggers>
  1306. <Trigger Property="IsEnabled" Value="false">
  1307. <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
  1308. <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
  1309. </Trigger>
  1310. <Trigger Property="IsMouseOver" Value="true">
  1311. <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
  1312. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
  1313. </Trigger>
  1314. <Trigger Property="IsKeyboardFocused" Value="true">
  1315. <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
  1316. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
  1317. </Trigger>
  1318. </ControlTemplate.Triggers>
  1319. </ControlTemplate>
  1320. </Setter.Value>
  1321. </Setter>
  1322. <Style.Triggers>
  1323. <MultiTrigger>
  1324. <MultiTrigger.Conditions>
  1325. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1326. <Condition Property="IsSelectionActive" Value="false" />
  1327. </MultiTrigger.Conditions>
  1328. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1329. </MultiTrigger>
  1330. </Style.Triggers>
  1331. </Style>
  1332. <!--#endregion-->
  1333. <!--#region UserNameTextBoxStyle-->
  1334. <LinearGradientBrush x:Key="TextBoxBorder" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,20">
  1335. <GradientStop Offset="0.05" Color="#ABADB3" />
  1336. <GradientStop Offset="0.07" Color="#E2E3EA" />
  1337. <GradientStop Offset="1" Color="#E3E9EF" />
  1338. </LinearGradientBrush>
  1339. <Style
  1340. x:Key="UserNameTextBoxStyle"
  1341. BasedOn="{x:Null}"
  1342. TargetType="{x:Type TextBox}">
  1343. <Setter Property="Foreground" Value="White" />
  1344. <Setter Property="Background" Value="Transparent" />
  1345. <Setter Property="Padding" Value="1" />
  1346. <Setter Property="CaretBrush" Value="Aqua" />
  1347. <Setter Property="Height" Value="40" />
  1348. <Setter Property="Width" Value="135" />
  1349. <Setter Property="HorizontalContentAlignment" Value="Center" />
  1350. <Setter Property="FontSize" Value="16" />
  1351. <Setter Property="HorizontalAlignment" Value="Left" />
  1352. <Setter Property="AllowDrop" Value="true" />
  1353. <Setter Property="FocusVisualStyle" Value="{x:Null}" />
  1354. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
  1355. <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
  1356. <Setter Property="Template">
  1357. <Setter.Value>
  1358. <ControlTemplate TargetType="{x:Type TextBox}">
  1359. <Border x:Name="Bd" VerticalAlignment="Center">
  1360. <Grid>
  1361. <ScrollViewer
  1362. x:Name="PART_ContentHost"
  1363. VerticalAlignment="Center"
  1364. HorizontalScrollBarVisibility="Hidden"
  1365. VerticalScrollBarVisibility="Hidden" />
  1366. <Path
  1367. x:Name="p1"
  1368. Stroke="#7720FDFA"
  1369. StrokeThickness="1">
  1370. <Path.Data>
  1371. <PathGeometry>
  1372. <PathFigure IsClosed="False" StartPoint="1, 1">
  1373. <LineSegment Point="133,1" />
  1374. <LineSegment Point="133,38" />
  1375. <LineSegment Point="1,38" />
  1376. <LineSegment Point="1,1" />
  1377. </PathFigure>
  1378. </PathGeometry>
  1379. </Path.Data>
  1380. </Path>
  1381. <Path
  1382. Name="p2"
  1383. Stroke="#aa20FDFA"
  1384. StrokeThickness="3">
  1385. <Path.Data>
  1386. <PathGeometry>
  1387. <PathFigure IsClosed="False" StartPoint="10, 1">
  1388. <LineSegment Point="1,1" />
  1389. <LineSegment Point="1,10" />
  1390. </PathFigure>
  1391. </PathGeometry>
  1392. </Path.Data>
  1393. </Path>
  1394. <Path
  1395. Name="p3"
  1396. Stroke="#aa20FDFA"
  1397. StrokeThickness="3">
  1398. <Path.Data>
  1399. <PathGeometry>
  1400. <PathFigure IsClosed="False" StartPoint="125, 1">
  1401. <LineSegment Point="133,1" />
  1402. <LineSegment Point="133,10" />
  1403. </PathFigure>
  1404. </PathGeometry>
  1405. </Path.Data>
  1406. </Path>
  1407. <Path
  1408. x:Name="p4"
  1409. Stroke="#aa20FDFA"
  1410. StrokeThickness="3">
  1411. <Path.Data>
  1412. <PathGeometry>
  1413. <PathFigure IsClosed="False" StartPoint="125, 38">
  1414. <LineSegment Point="133,38" />
  1415. <LineSegment Point="133,30" />
  1416. </PathFigure>
  1417. </PathGeometry>
  1418. </Path.Data>
  1419. </Path>
  1420. <Path
  1421. x:Name="p5"
  1422. Stroke="#aa20FDFA"
  1423. StrokeThickness="3">
  1424. <Path.Data>
  1425. <PathGeometry>
  1426. <PathFigure IsClosed="False" StartPoint="1, 30">
  1427. <LineSegment Point="1,38" />
  1428. <LineSegment Point="10,38" />
  1429. </PathFigure>
  1430. </PathGeometry>
  1431. </Path.Data>
  1432. </Path>
  1433. </Grid>
  1434. </Border>
  1435. <ControlTemplate.Triggers>
  1436. <Trigger Property="IsEnabled" Value="false">
  1437. <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
  1438. <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
  1439. </Trigger>
  1440. <Trigger Property="IsMouseOver" Value="true">
  1441. <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
  1442. <Setter TargetName="p1" Property="Stroke" Value="#aa20FDFA" />
  1443. <Setter TargetName="p2" Property="Stroke" Value="Aqua" />
  1444. <Setter TargetName="p3" Property="Stroke" Value="Aqua" />
  1445. <Setter TargetName="p4" Property="Stroke" Value="Aqua" />
  1446. <Setter TargetName="p5" Property="Stroke" Value="Aqua" />
  1447. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
  1448. </Trigger>
  1449. <Trigger Property="IsKeyboardFocused" Value="true">
  1450. <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
  1451. <Setter TargetName="p1" Property="Stroke" Value="#aaFFCA51" />
  1452. <Setter TargetName="p2" Property="Stroke" Value="#FFCA51" />
  1453. <Setter TargetName="p3" Property="Stroke" Value="#FFCA51" />
  1454. <Setter TargetName="p4" Property="Stroke" Value="#FFCA51" />
  1455. <Setter TargetName="p5" Property="Stroke" Value="#FFCA51" />
  1456. <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
  1457. </Trigger>
  1458. </ControlTemplate.Triggers>
  1459. </ControlTemplate>
  1460. </Setter.Value>
  1461. </Setter>
  1462. <Style.Triggers>
  1463. <MultiTrigger>
  1464. <MultiTrigger.Conditions>
  1465. <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
  1466. <Condition Property="IsSelectionActive" Value="false" />
  1467. </MultiTrigger.Conditions>
  1468. <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
  1469. </MultiTrigger>
  1470. </Style.Triggers>
  1471. </Style>
  1472. <!--#endregion-->
  1473. <!--#region TextBlock-->
  1474. <Style TargetType="TextBlock">
  1475. <Style.Setters>
  1476. <Setter Property="Foreground" Value="#a2c2e8" />
  1477. <Setter Property="HorizontalAlignment" Value="Left" />
  1478. <Setter Property="VerticalAlignment" Value="Center" />
  1479. <Setter Property="FontSize" Value="20" />
  1480. </Style.Setters>
  1481. </Style>
  1482. <Style x:Key="Title" TargetType="TextBlock">
  1483. <Setter Property="FontSize" Value="18" />
  1484. <Setter Property="Foreground" Value="#FF58C7EE" />
  1485. <Setter Property="VerticalAlignment" Value="Center" />
  1486. <Setter Property="HorizontalAlignment" Value="Center" />
  1487. </Style>
  1488. <!--#endregion-->
  1489. <!--#region GroupBox-->
  1490. <BorderGapMaskConverter x:Key="BorderGapMaskConverter" />
  1491. <Style TargetType="{x:Type GroupBox}">
  1492. <Setter Property="BorderThickness" Value="0" />
  1493. <Setter Property="Background" Value="Transparent" />
  1494. <Setter Property="Foreground" Value="#FF68D8FE" />
  1495. <Setter Property="Template">
  1496. <Setter.Value>
  1497. <ControlTemplate TargetType="{x:Type GroupBox}">
  1498. <Grid SnapsToDevicePixels="true">
  1499. <Grid.ColumnDefinitions>
  1500. <ColumnDefinition Width="6" />
  1501. <ColumnDefinition Width="Auto" />
  1502. <ColumnDefinition Width="*" />
  1503. <ColumnDefinition Width="6" />
  1504. </Grid.ColumnDefinitions>
  1505. <Grid.RowDefinitions>
  1506. <RowDefinition Height="Auto" />
  1507. <RowDefinition Height="Auto" />
  1508. <RowDefinition Height="*" />
  1509. <RowDefinition Height="6" />
  1510. </Grid.RowDefinitions>
  1511. <Rectangle Grid.RowSpan="2" Grid.ColumnSpan="4" />
  1512. <Border
  1513. Grid.Row="2"
  1514. Grid.RowSpan="2"
  1515. Grid.ColumnSpan="4"
  1516. Margin="0,0,0,0"
  1517. BorderThickness="0"
  1518. CornerRadius="0" />
  1519. <Image
  1520. Grid.Row="0"
  1521. Grid.RowSpan="2"
  1522. Grid.Column="1"
  1523. Height="4"
  1524. Margin="0,5,0,0"
  1525. HorizontalAlignment="Left"
  1526. Source="/BPASmartClient.CustomResource;component/Image/表格/矩形2609.png" />
  1527. <Border
  1528. x:Name="Header"
  1529. Grid.Row="0"
  1530. Grid.RowSpan="2"
  1531. Grid.Column="1"
  1532. Height="30"
  1533. Margin="30,0,0,0"
  1534. Padding="3,1,3,0">
  1535. <ContentPresenter
  1536. VerticalAlignment="Center"
  1537. ContentSource="Header"
  1538. RecognizesAccessKey="True"
  1539. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1540. </Border>
  1541. <ContentPresenter
  1542. Grid.Row="2"
  1543. Grid.Column="1"
  1544. Grid.ColumnSpan="2"
  1545. Margin="{TemplateBinding Padding}"
  1546. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1547. </Grid>
  1548. </ControlTemplate>
  1549. </Setter.Value>
  1550. </Setter>
  1551. </Style>
  1552. <!--#endregion-->
  1553. <!-- 空MenuHeader -->
  1554. <Style x:Key="MenuItem_NonStyle" TargetType="{x:Type MenuItem}">
  1555. <Setter Property="Height" Value="Auto" />
  1556. <Setter Property="Template">
  1557. <Setter.Value>
  1558. <ControlTemplate TargetType="{x:Type MenuItem}">
  1559. <Grid Margin="1">
  1560. <ContentPresenter
  1561. x:Name="Presenter"
  1562. Margin="{TemplateBinding Padding}"
  1563. ContentSource="Header" />
  1564. </Grid>
  1565. </ControlTemplate>
  1566. </Setter.Value>
  1567. </Setter>
  1568. </Style>
  1569. </ResourceDictionary>