Generic.xaml 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088
  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:OpenSEMI.Ctrlib.Controls"
  5. xmlns:wnd="clr-namespace:OpenSEMI.Ctrlib.Window"
  6. xmlns:cvt="clr-namespace:OpenSEMI.Ctrlib.Converter"
  7. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  8. xmlns:unitControls="clr-namespace:MECF.Framework.UI.Client.Ctrlib.UnitControls">
  9. <ResourceDictionary.MergedDictionaries>
  10. <ResourceDictionary Source="/MECF.Framework.UI.Client;component/DataGridTransform/DataGrid/Themes/Generic.xaml" />
  11. </ResourceDictionary.MergedDictionaries>
  12. <LinearGradientBrush x:Key="GrayBlueGradientBrush"
  13. StartPoint="0,0" EndPoint="1,1">
  14. <GradientStop Color="DarkGray" Offset="0" />
  15. <GradientStop Color="#CCCCFF" Offset="0.5" />
  16. <GradientStop Color="DarkGray" Offset="1" />
  17. </LinearGradientBrush>
  18. <Style x:Key="PoppingExpanderSholdDelete" TargetType="{x:Type Button}">
  19. <Setter Property="Background" Value="{StaticResource GrayBlueGradientBrush}" />
  20. <Setter Property="Width" Value="80" />
  21. <Setter Property="Margin" Value="10" />
  22. </Style>
  23. <cvt:SlotBorderConverter x:Key="borderConverter"/>
  24. <Style TargetType="{x:Type local:Valve}">
  25. <Setter Property="ValveState" Value="UNKNOWN"/>
  26. <Setter Property="Background" Value="Transparent"/>
  27. <Setter Property="BorderBrush" Value="Transparent"/>
  28. <Setter Property="BorderThickness" Value="0"/>
  29. <Setter Property="Orientation" Value="Horizontal"/>
  30. <Setter Property="Height" Value="16"/>
  31. <Setter Property="Width" Value="16"/>
  32. <Setter Property="Template">
  33. <Setter.Value>
  34. <ControlTemplate TargetType="{x:Type local:Valve}">
  35. <Border Background="{TemplateBinding Background}"
  36. BorderBrush="{TemplateBinding BorderBrush}"
  37. BorderThickness="{TemplateBinding BorderThickness}" Cursor="Hand" SnapsToDevicePixels="True">
  38. <Grid>
  39. <Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  40. <Ellipse.Fill>
  41. <LinearGradientBrush EndPoint="0.146,0.146" StartPoint="0.854,0.854">
  42. <GradientStop Color="#FF333333" Offset="0"/>
  43. <GradientStop Color="#FFCECECE" Offset="1"/>
  44. </LinearGradientBrush>
  45. </Ellipse.Fill>
  46. </Ellipse>
  47. <Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="1">
  48. <Ellipse.Fill>
  49. <LinearGradientBrush EndPoint="0.854,0.854" StartPoint="0.146,0.146">
  50. <GradientStop Color="#FF333333" Offset="0"/>
  51. <GradientStop Color="#FFCECECE" Offset="1"/>
  52. </LinearGradientBrush>
  53. </Ellipse.Fill>
  54. </Ellipse>
  55. <Rectangle x:Name="PART_OPEN" Fill="#FF00BA28" Stroke="#FF104F1D"
  56. RadiusX="1" RadiusY="1" Height="4" Margin="2,0" HorizontalAlignment="Stretch" VerticalAlignment="Center"
  57. RenderTransformOrigin="0.5,0.5" Visibility="Collapsed"/>
  58. <Rectangle x:Name="PART_CLOSE" Fill="#FF3B3B3B" Stroke="#FF1F1F1F"
  59. RadiusX="1" RadiusY="1" Width="4" Margin="0,2" VerticalAlignment="Stretch" HorizontalAlignment="Center"
  60. RenderTransformOrigin="0.5,0.5" Visibility="Collapsed"/>
  61. <Path x:Name="PART_UNKNOWN" HorizontalAlignment="Center" VerticalAlignment="Center"
  62. Data="M5.5,0.5 L6.5,0.5 C7.0522847,0.5 7.5,0.94771528 7.5,1.5 L7.5,4.4999999 10.5,4.4999999 C11.052285,4.5 11.5,4.9477152 11.5,5.5 L11.5,6.5 C11.5,7.0522847 11.052285,7.5 10.5,7.5 L7.5,7.5 7.5,10.5 C7.5,11.052285 7.0522847,11.5 6.5,11.5 L5.5,11.5 C4.9477153,11.5 4.5,11.052285 4.5,10.5 L4.5,7.5 1.5,7.5 C0.94771522,7.5 0.5,7.0522847 0.5,6.5 L0.5,5.5 C0.5,4.9477152 0.94771522,4.5 1.5,4.4999999 L4.5,4.4999999 4.5,1.5 C4.5,0.94771528 4.9477153,0.5 5.5,0.5 z"
  63. Fill="#FFAFAFAF" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Margin="2"
  64. Stroke="#FF505050" Visibility="Visible">
  65. <Path.RenderTransform>
  66. <RotateTransform Angle="45"/>
  67. </Path.RenderTransform>
  68. </Path>
  69. </Grid>
  70. </Border>
  71. <ControlTemplate.Triggers>
  72. <Trigger Property="ValveState" Value="ON">
  73. <Setter TargetName="PART_OPEN" Property="Visibility" Value="Visible"/>
  74. <Setter TargetName="PART_CLOSE" Property="Visibility" Value="Collapsed"/>
  75. <Setter TargetName="PART_UNKNOWN" Property="Visibility" Value="Collapsed"/>
  76. </Trigger>
  77. <Trigger Property="ValveState" Value="OFF">
  78. <Setter TargetName="PART_OPEN" Property="Visibility" Value="Collapsed"/>
  79. <Setter TargetName="PART_CLOSE" Property="Visibility" Value="Visible"/>
  80. <Setter TargetName="PART_UNKNOWN" Property="Visibility" Value="Collapsed"/>
  81. </Trigger>
  82. </ControlTemplate.Triggers>
  83. </ControlTemplate>
  84. </Setter.Value>
  85. </Setter>
  86. <Style.Triggers>
  87. <Trigger Property="Orientation" Value="Vertical">
  88. <Setter Property="Template">
  89. <Setter.Value>
  90. <ControlTemplate TargetType="{x:Type local:Valve}">
  91. <Border Background="{TemplateBinding Background}"
  92. BorderBrush="{TemplateBinding BorderBrush}"
  93. BorderThickness="{TemplateBinding BorderThickness}" Cursor="Hand" SnapsToDevicePixels="True">
  94. <Grid>
  95. <Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  96. <Ellipse.Fill>
  97. <LinearGradientBrush EndPoint="0.146,0.146" StartPoint="0.854,0.854">
  98. <GradientStop Color="#FF333333" Offset="0"/>
  99. <GradientStop Color="#FFCECECE" Offset="1"/>
  100. </LinearGradientBrush>
  101. </Ellipse.Fill>
  102. </Ellipse>
  103. <Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="1">
  104. <Ellipse.Fill>
  105. <LinearGradientBrush EndPoint="0.854,0.854" StartPoint="0.146,0.146">
  106. <GradientStop Color="#FF333333" Offset="0"/>
  107. <GradientStop Color="#FFCECECE" Offset="1"/>
  108. </LinearGradientBrush>
  109. </Ellipse.Fill>
  110. </Ellipse>
  111. <Rectangle x:Name="PART_OPEN" Fill="#FF00BA28" Stroke="#FF104F1D"
  112. RadiusX="1" RadiusY="1" Width="4" Margin="0,2" VerticalAlignment="Stretch" HorizontalAlignment="Center"
  113. RenderTransformOrigin="0.5,0.5" Visibility="Collapsed"/>
  114. <Rectangle x:Name="PART_CLOSE" Fill="#FF3B3B3B" Stroke="#FF1F1F1F"
  115. RadiusX="1" RadiusY="1" Height="4" Margin="2,0" HorizontalAlignment="Stretch" VerticalAlignment="Center"
  116. RenderTransformOrigin="0.5,0.5" Visibility="Collapsed"/>
  117. <Path x:Name="PART_UNKNOWN" HorizontalAlignment="Center" VerticalAlignment="Center"
  118. Data="M5.5,0.5 L6.5,0.5 C7.0522847,0.5 7.5,0.94771528 7.5,1.5 L7.5,4.4999999 10.5,4.4999999 C11.052285,4.5 11.5,4.9477152 11.5,5.5 L11.5,6.5 C11.5,7.0522847 11.052285,7.5 10.5,7.5 L7.5,7.5 7.5,10.5 C7.5,11.052285 7.0522847,11.5 6.5,11.5 L5.5,11.5 C4.9477153,11.5 4.5,11.052285 4.5,10.5 L4.5,7.5 1.5,7.5 C0.94771522,7.5 0.5,7.0522847 0.5,6.5 L0.5,5.5 C0.5,4.9477152 0.94771522,4.5 1.5,4.4999999 L4.5,4.4999999 4.5,1.5 C4.5,0.94771528 4.9477153,0.5 5.5,0.5 z"
  119. Fill="#FFAFAFAF" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Margin="2"
  120. Stroke="#FF505050" Visibility="Visible">
  121. <Path.RenderTransform>
  122. <RotateTransform Angle="45"/>
  123. </Path.RenderTransform>
  124. </Path>
  125. </Grid>
  126. </Border>
  127. <ControlTemplate.Triggers>
  128. <Trigger Property="ValveState" Value="ON">
  129. <Setter TargetName="PART_OPEN" Property="Visibility" Value="Visible"/>
  130. <Setter TargetName="PART_CLOSE" Property="Visibility" Value="Collapsed"/>
  131. <Setter TargetName="PART_UNKNOWN" Property="Visibility" Value="Collapsed"/>
  132. </Trigger>
  133. <Trigger Property="ValveState" Value="OFF">
  134. <Setter TargetName="PART_OPEN" Property="Visibility" Value="Collapsed"/>
  135. <Setter TargetName="PART_CLOSE" Property="Visibility" Value="Visible"/>
  136. <Setter TargetName="PART_UNKNOWN" Property="Visibility" Value="Collapsed"/>
  137. </Trigger>
  138. </ControlTemplate.Triggers>
  139. </ControlTemplate>
  140. </Setter.Value>
  141. </Setter>
  142. </Trigger>
  143. </Style.Triggers>
  144. </Style>
  145. <Style TargetType="{x:Type local:TextBoxEx}">
  146. <Setter Property="SnapsToDevicePixels" Value="True"/>
  147. <Setter Property="FontFamily" Value="Arial" />
  148. <Setter Property="FontSize" Value="12" />
  149. <Setter Property="BorderThickness" Value="1,1,0,0"/>
  150. <Setter Property="MinHeight" Value="20" />
  151. <Setter Property="Background" Value="White" />
  152. <Setter Property="Foreground" Value="Black" />
  153. <Setter Property="BorderBrush" Value="#FF1B1B1B"/>
  154. <Setter Property="Padding" Value="5,1"/>
  155. <Setter Property="HorizontalContentAlignment" Value="Left"/>
  156. <Setter Property="VerticalContentAlignment" Value="Center"/>
  157. <Setter Property="AllowDrop" Value="true"/>
  158. <Setter Property="ChangedColor" Value="#FFC0F18D"/>
  159. <Setter Property="WarningColor" Value="#FFFFE63D"/>
  160. <Setter Property="NormalColor" Value="White"/>
  161. <Setter Property="Template">
  162. <Setter.Value>
  163. <ControlTemplate TargetType="{x:Type local:TextBoxEx}">
  164. <Grid>
  165. <Border x:Name="TextBox_Outer" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
  166. BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
  167. <Border x:Name="TextBox_Inner" BorderBrush="#FFD6D6D6" BorderThickness="0,0,1,1" Padding="{TemplateBinding Padding}"/>
  168. </Border>
  169. <Rectangle x:Name="Lfet_Boder" Fill="{DynamicResource TextBox_InnerLeft}" HorizontalAlignment="Left" Width="1" Margin="1"/>
  170. <Rectangle x:Name="Top_Boder" Fill="{DynamicResource TextBox_InnerTop}" VerticalAlignment="Top" Height="1" Margin="1"/>
  171. <Rectangle x:Name="Right_Boder" Fill="{DynamicResource TextBox_InnerRight}" HorizontalAlignment="Right" Width="1" Margin="1,2,1,1"/>
  172. <Rectangle x:Name="Bottom_Boder" Fill="{DynamicResource TextBox_InnerBottom}" VerticalAlignment="Bottom" Height="1" Margin="1,1,2,1"/>
  173. <ScrollViewer x:Name="PART_ContentHost" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalAlignment}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
  174. </Grid>
  175. <ControlTemplate.Triggers>
  176. <Trigger Property="IsEnabled" Value="false">
  177. <Setter Property="BorderBrush" TargetName="TextBox_Outer" Value="#FF747474"/>
  178. <Setter Property="Background" TargetName="TextBox_Outer" Value="Gainsboro"/>
  179. <Setter Property="BorderBrush" TargetName="TextBox_Inner" Value="#FFBEBDBD"/>
  180. <Setter Property="Fill" TargetName="Lfet_Boder" Value="{DynamicResource TextBox_InnerLeft_Unable}"/>
  181. <Setter Property="Fill" TargetName="Top_Boder" Value="{DynamicResource TextBox_InnerTop_Unable}"/>
  182. <Setter Property="Fill" TargetName="Right_Boder" Value="{DynamicResource TextBox_InnerRight_Unable}"/>
  183. <Setter Property="Fill" TargetName="Bottom_Boder" Value="{DynamicResource TextBox_InnerBottom_Unable}"/>
  184. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  185. </Trigger>
  186. <Trigger Property="Text" Value="{x:Static sys:String.Empty}">
  187. <Setter Property="ToolTipService.IsEnabled" Value="False"/>
  188. </Trigger>
  189. </ControlTemplate.Triggers>
  190. </ControlTemplate>
  191. </Setter.Value>
  192. </Setter>
  193. </Style>
  194. <Style TargetType="{x:Type local:Wafer}">
  195. <Setter Property="Template" >
  196. <Setter.Value>
  197. <ControlTemplate TargetType="{x:Type local:Wafer}">
  198. <Border Background="{TemplateBinding Background}"
  199. BorderBrush="{TemplateBinding BorderBrush}"
  200. BorderThickness="{TemplateBinding BorderThickness}">
  201. <Border.ToolTip>
  202. <ToolTip Name="tb_tooltip">
  203. <StackPanel Orientation="Vertical">
  204. <TextBlock Text="{Binding WaferTooltip,RelativeSource={RelativeSource TemplatedParent}}"></TextBlock>
  205. </StackPanel>
  206. </ToolTip>
  207. </Border.ToolTip>
  208. <Grid>
  209. <Rectangle x:Name="WaferCtrl_FrontView" Width="90" Height="11" Stroke="#FF232200">
  210. <Rectangle.Fill>
  211. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  212. <GradientStop Color="#FFB88700" Offset="0"/>
  213. <GradientStop Color="#FFB88700" Offset="1"/>
  214. <GradientStop Color="#FFF7E0A0" Offset="0.5"/>
  215. </LinearGradientBrush>
  216. </Rectangle.Fill>
  217. </Rectangle>
  218. <Grid x:Name="WaferCtrl_TopView" Width="65" Height="65" Visibility="Collapsed">
  219. <Ellipse x:Name="SSC_WaferBG" Stroke="#FF232200" Fill="#FFFFBB00"/>
  220. <Ellipse x:Name="SSC_Wafer1" RenderTransformOrigin="0.5,0.5" Margin="1">
  221. <Ellipse.RenderTransform>
  222. <TransformGroup>
  223. <ScaleTransform/>
  224. <SkewTransform/>
  225. <RotateTransform Angle="75"/>
  226. <TranslateTransform/>
  227. </TransformGroup>
  228. </Ellipse.RenderTransform>
  229. <Ellipse.Fill>
  230. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  231. <GradientStop Color="#00E6E4AD" Offset="0"/>
  232. <GradientStop Color="#00E6E4AD" Offset="1"/>
  233. <GradientStop Color="White" Offset="0.45"/>
  234. <GradientStop Color="White" Offset="0.55"/>
  235. </LinearGradientBrush>
  236. </Ellipse.Fill>
  237. </Ellipse>
  238. <Ellipse x:Name="SSC_Wafer2" Opacity="0.75" Margin="1" RenderTransformOrigin="0.5,0.5">
  239. <Ellipse.Fill>
  240. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  241. <GradientStop Color="#00E6E4AD" Offset="0"/>
  242. <GradientStop Color="#00E6E4AD" Offset="1"/>
  243. <GradientStop Color="#FFAF8100" Offset="0.5"/>
  244. </LinearGradientBrush>
  245. </Ellipse.Fill>
  246. </Ellipse>
  247. </Grid>
  248. <TextBlock x:Name="Border_Txt" TextWrapping="NoWrap" Text="{Binding Path=SourceName, RelativeSource={RelativeSource TemplatedParent}}" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="{DynamicResource FG_Black}" FontFamily="Arial">
  249. </TextBlock>
  250. <TextBlock x:Name="Border_question" TextWrapping="NoWrap" Text="?" FontSize="14" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Red" FontWeight="Bold" FontFamily="Arial" Visibility="{Binding Path=DuplicatedVisibility, RelativeSource={RelativeSource TemplatedParent}}">
  251. <TextBlock.Effect>
  252. <DropShadowEffect ShadowDepth="0" Color="White" BlurRadius="6"/>
  253. </TextBlock.Effect>
  254. </TextBlock>
  255. </Grid>
  256. </Border>
  257. <ControlTemplate.Triggers>
  258. <Trigger Property="SourceName" Value="{x:Static sys:String.Empty}">
  259. <Setter Property="Visibility" TargetName="Border_Txt" Value="Collapsed"/>
  260. </Trigger>
  261. <Trigger Property="WaferTooltip" Value="{x:Static sys:String.Empty}">
  262. <Setter Property="Visibility" TargetName="tb_tooltip" Value="Collapsed"/>
  263. </Trigger>
  264. <Trigger Property="ViewType" Value="Front">
  265. <Setter Property="Visibility" TargetName="WaferCtrl_FrontView" Value="Visible"/>
  266. <Setter Property="Visibility" TargetName="WaferCtrl_TopView" Value="Collapsed"/>
  267. </Trigger>
  268. <Trigger Property="ViewType" Value="Top">
  269. <Setter Property="Visibility" TargetName="WaferCtrl_FrontView" Value="Collapsed"/>
  270. <Setter Property="Visibility" TargetName="WaferCtrl_TopView" Value="Visible"/>
  271. </Trigger>
  272. <Trigger Property="WaferStatus" Value="0">
  273. <Setter Property="Stroke" TargetName="WaferCtrl_FrontView" Value="#002F4E48"/>
  274. <Setter Property="Fill" TargetName="WaferCtrl_FrontView">
  275. <Setter.Value>
  276. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  277. <GradientStop Color="#00B88700" Offset="0"/>
  278. <GradientStop Color="#00B88700" Offset="1"/>
  279. <GradientStop Color="#00F7E0A0" Offset="0.5"/>
  280. </LinearGradientBrush>
  281. </Setter.Value>
  282. </Setter>
  283. <Setter Property="Stroke" TargetName="SSC_WaferBG" Value="#002F4E48"/>
  284. <Setter Property="Fill" TargetName="SSC_WaferBG" Value="#00FFBB00"/>
  285. <Setter Property="Fill" TargetName="SSC_Wafer1">
  286. <Setter.Value>
  287. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  288. <GradientStop Color="#00E6E4AD" Offset="0"/>
  289. <GradientStop Color="#00E6E4AD" Offset="1"/>
  290. <GradientStop Color="#00E6E4AD" Offset="0.45"/>
  291. <GradientStop Color="#00E6E4AD" Offset="0.55"/>
  292. </LinearGradientBrush>
  293. </Setter.Value>
  294. </Setter>
  295. <Setter Property="Fill" TargetName="SSC_Wafer2">
  296. <Setter.Value>
  297. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  298. <GradientStop Color="#00E6E4AD" Offset="0"/>
  299. <GradientStop Color="#00E6E4AD" Offset="1"/>
  300. <GradientStop Color="#00AF8100" Offset="0.5"/>
  301. </LinearGradientBrush>
  302. </Setter.Value>
  303. </Setter>
  304. <Setter Property="Visibility" TargetName="tb_tooltip" Value="Collapsed"/>
  305. <Setter Property="Visibility" TargetName="Border_Txt" Value="Collapsed"/>
  306. </Trigger>
  307. <Trigger Property="WaferStatus" Value="1">
  308. <Setter Property="Stroke" TargetName="WaferCtrl_FrontView" Value="#FF232200"/>
  309. <Setter Property="Fill" TargetName="WaferCtrl_FrontView">
  310. <Setter.Value>
  311. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  312. <GradientStop Color="#FF6398CC" Offset="0"/>
  313. <GradientStop Color="#FF6398CC" Offset="1"/>
  314. <GradientStop Color="#FFF0F8FF" Offset="0.5"/>
  315. </LinearGradientBrush>
  316. </Setter.Value>
  317. </Setter>
  318. <Setter Property="Stroke" TargetName="SSC_WaferBG" Value="#FF232200"/>
  319. <Setter Property="Fill" TargetName="SSC_WaferBG" Value="#FFADD8E6"/>
  320. <Setter Property="Fill" TargetName="SSC_Wafer1">
  321. <Setter.Value>
  322. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  323. <GradientStop Color="#00E6E4AD" Offset="0"/>
  324. <GradientStop Color="#00E6E4AD" Offset="1"/>
  325. <GradientStop Color="White" Offset="0.45"/>
  326. <GradientStop Color="White" Offset="0.55"/>
  327. </LinearGradientBrush>
  328. </Setter.Value>
  329. </Setter>
  330. <Setter Property="Fill" TargetName="SSC_Wafer2">
  331. <Setter.Value>
  332. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  333. <GradientStop Color="#00ADD8E6" Offset="0"/>
  334. <GradientStop Color="#00ADD8E6" Offset="1"/>
  335. <GradientStop Color="#FF6398CC" Offset="0.5"/>
  336. </LinearGradientBrush>
  337. </Setter.Value>
  338. </Setter>
  339. <Setter Property="Visibility" TargetName="tb_tooltip" Value="Collapsed"/>
  340. </Trigger>
  341. <Trigger Property="WaferStatus" Value="2">
  342. <Setter Property="Stroke" TargetName="WaferCtrl_FrontView" Value="#FF000B14"/>
  343. <Setter Property="Fill" TargetName="WaferCtrl_FrontView">
  344. <Setter.Value>
  345. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  346. <GradientStop Color="#FF3333FF" Offset="0"/>
  347. <GradientStop Color="#FF3333FF" Offset="1"/>
  348. <GradientStop Color="#FFE1E1FF" Offset="0.5"/>
  349. </LinearGradientBrush>
  350. </Setter.Value>
  351. </Setter>
  352. <Setter Property="Stroke" TargetName="SSC_WaferBG" Value="#FF001154"/>
  353. <Setter Property="Fill" TargetName="SSC_WaferBG" Value="#FF6E6EFF"/>
  354. <Setter Property="Fill" TargetName="SSC_Wafer1">
  355. <Setter.Value>
  356. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  357. <GradientStop Color="#00E1E1FF" Offset="0"/>
  358. <GradientStop Color="#00E1E1FF" Offset="1"/>
  359. <GradientStop Color="#FFE1E1FF" Offset="0.45"/>
  360. <GradientStop Color="#FFE1E1FF" Offset="0.55"/>
  361. </LinearGradientBrush>
  362. </Setter.Value>
  363. </Setter>
  364. <Setter Property="Fill" TargetName="SSC_Wafer2">
  365. <Setter.Value>
  366. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  367. <GradientStop Color="#000000FF" Offset="0"/>
  368. <GradientStop Color="#000000FF" Offset="1"/>
  369. <GradientStop Color="#FF3D3DFF" Offset="0.5"/>
  370. </LinearGradientBrush>
  371. </Setter.Value>
  372. </Setter>
  373. </Trigger>
  374. <Trigger Property="WaferStatus" Value="3">
  375. <Setter Property="Stroke" TargetName="WaferCtrl_FrontView" Value="#FF000B14"/>
  376. <Setter Property="Fill" TargetName="WaferCtrl_FrontView">
  377. <Setter.Value>
  378. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  379. <GradientStop Color="Cyan" Offset="0"/>
  380. <GradientStop Color="Cyan" Offset="1"/>
  381. <GradientStop Color="#FFE7F5F9" Offset="0.5"/>
  382. </LinearGradientBrush>
  383. </Setter.Value>
  384. </Setter>
  385. <Setter Property="Stroke" TargetName="SSC_WaferBG" Value="#FF001154"/>
  386. <Setter Property="Fill" TargetName="SSC_WaferBG" Value="#FF00E4E4"/>
  387. <Setter Property="Fill" TargetName="SSC_Wafer1">
  388. <Setter.Value>
  389. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  390. <GradientStop Color="#0000FFFF" Offset="0"/>
  391. <GradientStop Color="#0000FFFF" Offset="1"/>
  392. <GradientStop Color="White" Offset="0.45"/>
  393. <GradientStop Color="White" Offset="0.55"/>
  394. </LinearGradientBrush>
  395. </Setter.Value>
  396. </Setter>
  397. <Setter Property="Fill" TargetName="SSC_Wafer2">
  398. <Setter.Value>
  399. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  400. <GradientStop Color="#0000FFFF" Offset="0"/>
  401. <GradientStop Color="#0000FFFF" Offset="1"/>
  402. <GradientStop Color="#FF00B2B2" Offset="0.5"/>
  403. </LinearGradientBrush>
  404. </Setter.Value>
  405. </Setter>
  406. </Trigger>
  407. <Trigger Property="WaferStatus" Value="4">
  408. <Setter Property="Stroke" TargetName="WaferCtrl_FrontView" Value="#FF000B14"/>
  409. <Setter Property="Fill" TargetName="WaferCtrl_FrontView">
  410. <Setter.Value>
  411. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  412. <GradientStop Color="#FF00B400" Offset="0"/>
  413. <GradientStop Color="#FF00B400" Offset="1"/>
  414. <GradientStop Color="#FFA9FFA9" Offset="0.5"/>
  415. </LinearGradientBrush>
  416. </Setter.Value>
  417. </Setter>
  418. <Setter Property="Stroke" TargetName="SSC_WaferBG" Value="#FF002700"/>
  419. <Setter Property="Fill" TargetName="SSC_WaferBG" Value="#FF19FF19"/>
  420. <Setter Property="Fill" TargetName="SSC_Wafer1">
  421. <Setter.Value>
  422. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  423. <GradientStop Offset="0" Color="#00B3FFB3"/>
  424. <GradientStop Offset="1" Color="#00B3FFB3"/>
  425. <GradientStop Color="White" Offset="0.45"/>
  426. <GradientStop Color="White" Offset="0.55"/>
  427. </LinearGradientBrush>
  428. </Setter.Value>
  429. </Setter>
  430. <Setter Property="Fill" TargetName="SSC_Wafer2">
  431. <Setter.Value>
  432. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  433. <GradientStop Color="#00008000" Offset="0"/>
  434. <GradientStop Color="#00008000" Offset="1"/>
  435. <GradientStop Color="#FF00A300" Offset="0.5"/>
  436. </LinearGradientBrush>
  437. </Setter.Value>
  438. </Setter>
  439. </Trigger>
  440. <Trigger Property="WaferStatus" Value="5">
  441. <Setter Property="Stroke" TargetName="WaferCtrl_FrontView" Value="#FF000B14"/>
  442. <Setter Property="Fill" TargetName="WaferCtrl_FrontView">
  443. <Setter.Value>
  444. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  445. <GradientStop Color="Red" Offset="0"/>
  446. <GradientStop Color="Red" Offset="1"/>
  447. <GradientStop Color="#FFFFD7D7" Offset="0.5"/>
  448. </LinearGradientBrush>
  449. </Setter.Value>
  450. </Setter>
  451. <Setter Property="Stroke" TargetName="SSC_WaferBG" Value="#FF500000"/>
  452. <Setter Property="Fill" TargetName="SSC_WaferBG" Value="#FFFF5D5D"/>
  453. <Setter Property="Fill" TargetName="SSC_Wafer1">
  454. <Setter.Value>
  455. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  456. <GradientStop Color="#00FF0000" Offset="1"/>
  457. <GradientStop Color="White" Offset="0.45"/>
  458. <GradientStop Color="White" Offset="0.55"/>
  459. <GradientStop Color="#00FF0000"/>
  460. </LinearGradientBrush>
  461. </Setter.Value>
  462. </Setter>
  463. <Setter Property="Fill" TargetName="SSC_Wafer2">
  464. <Setter.Value>
  465. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  466. <GradientStop Color="#00FF0000" Offset="0"/>
  467. <GradientStop Color="#00FF0000" Offset="1"/>
  468. <GradientStop Color="Red" Offset="0.5"/>
  469. </LinearGradientBrush>
  470. </Setter.Value>
  471. </Setter>
  472. </Trigger>
  473. <Trigger Property="WaferStatus" Value="6">
  474. <Setter Property="Stroke" TargetName="WaferCtrl_FrontView" Value="#FF232200"/>
  475. <Setter Property="Fill" TargetName="WaferCtrl_FrontView">
  476. <Setter.Value>
  477. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  478. <GradientStop Color="#FFB88700" Offset="0"/>
  479. <GradientStop Color="#FFB88700" Offset="1"/>
  480. <GradientStop Color="#FFF7E0A0" Offset="0.5"/>
  481. </LinearGradientBrush>
  482. </Setter.Value>
  483. </Setter>
  484. <Setter Property="Stroke" TargetName="SSC_WaferBG" Value="#FF232200"/>
  485. <Setter Property="Fill" TargetName="SSC_WaferBG" Value="#FFFFBB00"/>
  486. <Setter Property="Fill" TargetName="SSC_Wafer1">
  487. <Setter.Value>
  488. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  489. <GradientStop Color="#00E6E4AD" Offset="0"/>
  490. <GradientStop Color="#00E6E4AD" Offset="1"/>
  491. <GradientStop Color="White" Offset="0.45"/>
  492. <GradientStop Color="White" Offset="0.55"/>
  493. </LinearGradientBrush>
  494. </Setter.Value>
  495. </Setter>
  496. <Setter Property="Fill" TargetName="SSC_Wafer2">
  497. <Setter.Value>
  498. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  499. <GradientStop Color="#00E6E4AD" Offset="0"/>
  500. <GradientStop Color="#00E6E4AD" Offset="1"/>
  501. <GradientStop Color="#FFAF8100" Offset="0.5"/>
  502. </LinearGradientBrush>
  503. </Setter.Value>
  504. </Setter>
  505. <Setter Property="Visibility" TargetName="tb_tooltip" Value="Collapsed"/>
  506. </Trigger>
  507. <Trigger Property="WaferStatus" Value="7">
  508. <Setter Property="Stroke" TargetName="WaferCtrl_FrontView" Value="#FF232200"/>
  509. <Setter Property="Fill" TargetName="WaferCtrl_FrontView">
  510. <Setter.Value>
  511. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  512. <GradientStop Color="#FFFFFF00" Offset="0"/>
  513. <GradientStop Color="#FFFFFF00" Offset="1"/>
  514. <GradientStop Color="#FFFFF59D" Offset="0.5"/>
  515. </LinearGradientBrush>
  516. </Setter.Value>
  517. </Setter>
  518. <Setter Property="Stroke" TargetName="SSC_WaferBG" Value="#FF232200"/>
  519. <Setter Property="Fill" TargetName="SSC_WaferBG" Value="#FFFFFF00"/>
  520. <Setter Property="Fill" TargetName="SSC_Wafer1">
  521. <Setter.Value>
  522. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  523. <GradientStop Color="#00E6E4AD" Offset="0"/>
  524. <GradientStop Color="#00E6E4AD" Offset="1"/>
  525. <GradientStop Color="White" Offset="0.45"/>
  526. <GradientStop Color="White" Offset="0.55"/>
  527. </LinearGradientBrush>
  528. </Setter.Value>
  529. </Setter>
  530. <Setter Property="Fill" TargetName="SSC_Wafer2">
  531. <Setter.Value>
  532. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  533. <GradientStop Color="#00E6E4AD" Offset="0"/>
  534. <GradientStop Color="#00E6E4AD" Offset="1"/>
  535. <GradientStop Color="#FFFFFF00" Offset="0.5"/>
  536. </LinearGradientBrush>
  537. </Setter.Value>
  538. </Setter>
  539. <Setter Property="Visibility" TargetName="tb_tooltip" Value="Collapsed"/>
  540. </Trigger>
  541. <Trigger Property="WaferStatus" Value="8">
  542. <Setter Property="Stroke" TargetName="WaferCtrl_FrontView" Value="#FF232200"/>
  543. <Setter Property="Fill" TargetName="WaferCtrl_FrontView">
  544. <Setter.Value>
  545. <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
  546. <GradientStop Color="#FFFF00FF" Offset="0"/>
  547. <GradientStop Color="#FFFF00FF" Offset="1"/>
  548. <GradientStop Color="#FFD8BFD8" Offset="0.5"/>
  549. </LinearGradientBrush>
  550. </Setter.Value>
  551. </Setter>
  552. <Setter Property="Stroke" TargetName="SSC_WaferBG" Value="#FF232200"/>
  553. <Setter Property="Fill" TargetName="SSC_WaferBG" Value="#FFFF00FF"/>
  554. <Setter Property="Fill" TargetName="SSC_Wafer1">
  555. <Setter.Value>
  556. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  557. <GradientStop Color="#00E6E4AD" Offset="0"/>
  558. <GradientStop Color="#00E6E4AD" Offset="1"/>
  559. <GradientStop Color="White" Offset="0.45"/>
  560. <GradientStop Color="White" Offset="0.55"/>
  561. </LinearGradientBrush>
  562. </Setter.Value>
  563. </Setter>
  564. <Setter Property="Fill" TargetName="SSC_Wafer2">
  565. <Setter.Value>
  566. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  567. <GradientStop Color="#00D8BFD8" Offset="0"/>
  568. <GradientStop Color="#00D8BFD8" Offset="1"/>
  569. <GradientStop Color="#FFFF00FF" Offset="0.5"/>
  570. </LinearGradientBrush>
  571. </Setter.Value>
  572. </Setter>
  573. <Setter Property="Visibility" TargetName="tb_tooltip" Value="Collapsed"/>
  574. </Trigger>
  575. </ControlTemplate.Triggers>
  576. </ControlTemplate>
  577. </Setter.Value>
  578. </Setter>
  579. </Style>
  580. <Style TargetType="{x:Type local:Slot}">
  581. <Setter Property="Template" >
  582. <Setter.Value>
  583. <ControlTemplate TargetType="{x:Type local:Slot}">
  584. <Border Background="{TemplateBinding Background}"
  585. BorderBrush="{TemplateBinding BorderBrush}"
  586. BorderThickness="{TemplateBinding BorderThickness}">
  587. <Grid>
  588. <local:Wafer ViewType="{Binding Path=ViewType, RelativeSource={RelativeSource TemplatedParent}}" ModuleID="{Binding Path=ModuleID, RelativeSource={RelativeSource TemplatedParent}}"
  589. SlotID="{Binding Path=SlotID, RelativeSource={RelativeSource TemplatedParent}}"
  590. SourceName="{Binding Path=SourceName, RelativeSource={RelativeSource TemplatedParent}}"
  591. WaferTooltip="{Binding Path=WaferTooltip, RelativeSource={RelativeSource TemplatedParent}}"
  592. WaferStatus="{Binding Path=WaferStatus, RelativeSource={RelativeSource TemplatedParent}}"
  593. DuplicatedVisibility="{Binding Path=DuplicatedVisibility, RelativeSource={RelativeSource TemplatedParent}}"></local:Wafer>
  594. <Grid x:Name="BorderView" Visibility="Collapsed">
  595. <Rectangle x:Name="Front_Border" Stroke="#FFFFD200" Margin="-1" Height="13" Width="92" Visibility="Collapsed"/>
  596. <Ellipse x:Name="Top_Border" Stroke="#FFFFD200" Width="67" Height="67" Margin="-1" Visibility="Collapsed"/>
  597. <Ellipse x:Name="Chamber_Border" Stroke="#FFFFD200" Width="80" Height="6" Margin="-6" Visibility="Collapsed"/>
  598. </Grid>
  599. </Grid>
  600. </Border>
  601. <ControlTemplate.Triggers>
  602. <Trigger Property="ViewType" Value="Front">
  603. <Setter Property="Visibility" TargetName="Front_Border" Value="Visible"/>
  604. <Setter Property="Visibility" TargetName="Top_Border" Value="Collapsed"/>
  605. <Setter Property="Visibility" TargetName="Chamber_Border" Value="Collapsed"/>
  606. </Trigger>
  607. <Trigger Property="ViewType" Value="Top">
  608. <Setter Property="Visibility" TargetName="Front_Border" Value="Collapsed"/>
  609. <Setter Property="Visibility" TargetName="Top_Border" Value="Visible"/>
  610. <Setter Property="Visibility" TargetName="Chamber_Border" Value="Collapsed"/>
  611. </Trigger>
  612. <Trigger Property="ViewType" Value="Chamber">
  613. <Setter Property="Visibility" TargetName="Front_Border" Value="Collapsed"/>
  614. <Setter Property="Visibility" TargetName="Top_Border" Value="Collapsed"/>
  615. <Setter Property="Visibility" TargetName="Chamber_Border" Value="Collapsed"/>
  616. </Trigger>
  617. <Trigger Property="ModuleID" Value="">
  618. <Setter Property="Visibility" TargetName="Front_Border" Value="Collapsed"/>
  619. <Setter Property="Visibility" TargetName="Top_Border" Value="Collapsed"/>
  620. <Setter Property="Visibility" TargetName="Chamber_Border" Value="Collapsed"/>
  621. </Trigger>
  622. <DataTrigger Binding="{Binding Path=BorderStatus,RelativeSource={RelativeSource Self},Converter={StaticResource borderConverter}}" Value="MouseOver">
  623. <Setter Property="Visibility" TargetName="BorderView" Value="Visible"/>
  624. </DataTrigger>
  625. <DataTrigger Binding="{Binding Path=BorderStatus,RelativeSource={RelativeSource Self},Converter={StaticResource borderConverter}}" Value="Selected">
  626. <Setter Property="Stroke" TargetName="Front_Border" Value="#FFA55300"/>
  627. <Setter Property="Stroke" TargetName="Top_Border" Value="#FFA55300"/>
  628. <Setter Property="Visibility" TargetName="BorderView" Value="Visible"/>
  629. </DataTrigger>
  630. <DataTrigger Binding="{Binding Path=BorderStatus,RelativeSource={RelativeSource Self},Converter={StaticResource borderConverter}}" Value="TransferSource">
  631. <Setter Property="Stroke" TargetName="Front_Border" Value="#FF00EFEA"/>
  632. <Setter Property="Stroke" TargetName="Top_Border" Value="#FF00EFEA"/>
  633. <Setter Property="Visibility" TargetName="BorderView" Value="Visible"/>
  634. </DataTrigger>
  635. <DataTrigger Binding="{Binding Path=BorderStatus,RelativeSource={RelativeSource Self},Converter={StaticResource borderConverter}}" Value="TransferTarget">
  636. <Setter Property="Stroke" TargetName="Front_Border" Value="#FF00E704"/>
  637. <Setter Property="Stroke" TargetName="Top_Border" Value="#FF00E704"/>
  638. <Setter Property="Visibility" TargetName="BorderView" Value="Visible"/>
  639. </DataTrigger>
  640. </ControlTemplate.Triggers>
  641. </ControlTemplate>
  642. </Setter.Value>
  643. </Setter>
  644. </Style>
  645. <Style TargetType="{x:Type wnd:CustomWnd}" BasedOn="{StaticResource ResourceKey={x:Type Window}}">
  646. <Setter Property="WindowStyle" Value="SingleBorderWindow"/>
  647. <Setter Property="AllowsTransparency" Value="False"/>
  648. <Setter Property="Foreground" Value="Black"/>
  649. <Setter Property="UseLayoutRounding" Value="True"/>
  650. <Setter Property="WindowChrome.WindowChrome">
  651. <Setter.Value>
  652. <WindowChrome CornerRadius="0" GlassFrameThickness="1" UseAeroCaptionButtons="False" NonClientFrameEdges="None" ResizeBorderThickness="5" />
  653. </Setter.Value>
  654. </Setter>
  655. <Setter Property="Template">
  656. <Setter.Value>
  657. <ControlTemplate TargetType="{x:Type wnd:CustomWnd}">
  658. <Grid x:Name="LayoutRoot" Background="{TemplateBinding Background}">
  659. <Grid.RowDefinitions>
  660. <RowDefinition Height="30" />
  661. <RowDefinition Height="*" />
  662. <RowDefinition Height="1" />
  663. </Grid.RowDefinitions>
  664. <Grid.ColumnDefinitions>
  665. <ColumnDefinition Width="1"/>
  666. <ColumnDefinition Width="*"/>
  667. <ColumnDefinition Width="1"/>
  668. </Grid.ColumnDefinitions>
  669. <AdornerDecorator Grid.Row="1" Grid.Column="1" KeyboardNavigation.IsTabStop="False">
  670. <ContentPresenter x:Name="MainContentPresenter" KeyboardNavigation.TabNavigation="Cycle" />
  671. </AdornerDecorator>
  672. <Border x:Name="OuterBorder_LeftTop" BorderBrush="{DynamicResource OuterBorder_BD_Highlight}" BorderThickness="1,1,0,0" Background="{DynamicResource OuterBorder_BG_TopConner}"/>
  673. <Border x:Name="Top_BG" Grid.Column="1" BorderThickness="0,1,0,0" BorderBrush="{DynamicResource OuterBorder_BD_Highlight}" Background="{DynamicResource OuterBorder_BG_Top}"/>
  674. <Border x:Name="OuterBorder_RightTop" BorderBrush="{DynamicResource OuterBorder_BD_Highlight}" BorderThickness="0,1,0,0" Background="{DynamicResource OuterBorder_BG_TopConner}" Grid.Column="2" RenderTransformOrigin="0.5,0.5">
  675. <Border.RenderTransform>
  676. <TransformGroup>
  677. <ScaleTransform ScaleY="1" ScaleX="-1"/>
  678. <SkewTransform AngleY="0" AngleX="0"/>
  679. <RotateTransform Angle="0"/>
  680. <TranslateTransform/>
  681. </TransformGroup>
  682. </Border.RenderTransform>
  683. <Border BorderBrush="{DynamicResource OuterBorder_BD_Shadow}" BorderThickness="1,0,0,0"/>
  684. </Border>
  685. <Grid x:Name="PART_WindowTitleGrid" Grid.Row="0" Grid.Column="1" Height="30" Background="LightGray">
  686. <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,10,0">
  687. <!--<Path Data="M6.1,8.2 L19.7,8.2 18.5,10 13.3,10 10.1,15.9 7,15.9 10.6,10 4.7,10 z M18.8,1.2 C18.8,1.2 25.9,2.1 25.6,6.4 25.2,13.2 12,14.3 12,14.3 L13.1,12.2 C13.1,12.2 22.5,11.5 23.5,6.5 24.1,3.6 18.1,2.5 18.1,2.5 z M14.6,1 L13.8,2.4 C8.7,2.8 2.9,5.2 2.5,8.7 2.4,10.8 7.6,12.1 7.6,12.1 L6.5,14.1 C6.5,14.1 -0.6,12.6 0,8.5 1.1,1.9 14.6,1 14.6,1 z M16.5,0 L18.4,0 15.7,5.3 21.8,5.3 20.5,7 6.8,7 7.9,5.2 13.4,5.2 z" Fill="{DynamicResource Color_BG_SmallLogo}" Height="15.9" Stretch="Fill" Width="25.6"/>-->
  688. <TextBlock Text="{TemplateBinding Title}" Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center" />
  689. </StackPanel>
  690. <!--<Grid>
  691. <TextBlock Text="{Binding CurrentViewPathName}" HorizontalAlignment="Stretch" VerticalAlignment="Center" TextAlignment="Center"> </TextBlock>
  692. </Grid>-->
  693. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5,0">
  694. <Button Width="35" Height="22" IsTabStop="False" WindowChrome.IsHitTestVisibleInChrome="True" Style="{DynamicResource SysBtnStyle}" Command="{x:Static SystemCommands.MinimizeWindowCommand}">
  695. <Button.Content>
  696. <Rectangle StrokeThickness="3" Width="10" Height="3" Fill="{DynamicResource Color_FG_Button_Window}"/>
  697. </Button.Content>
  698. </Button>
  699. <Button x:Name="PART_MAX" Width="35" Height="22" IsTabStop="False" WindowChrome.IsHitTestVisibleInChrome="True" Style="{DynamicResource SysBtnStyle}"/>
  700. <Button Width="35" Height="22" IsTabStop="False" WindowChrome.IsHitTestVisibleInChrome="True" Style="{DynamicResource SysCloseBtnStyle}" Command="{x:Static SystemCommands.CloseWindowCommand}">
  701. <Button.Content>
  702. <Path Data="M5.5,0 L8.5,0 8.5,5.5 14,5.5 14,8.5 8.5,8.5 8.5,14 5.5,14 5.5,8.5 0,8.5 0,5.5 5.5,5.5 z" Fill="{DynamicResource Color_FG_Button_Window}" Margin="10.5,3" RenderTransformOrigin="0.5,0.5" Stretch="Fill" StrokeThickness="3" Width="10" Height="10" >
  703. <Path.RenderTransform>
  704. <TransformGroup>
  705. <ScaleTransform/>
  706. <SkewTransform/>
  707. <RotateTransform Angle="45"/>
  708. <TranslateTransform/>
  709. </TransformGroup>
  710. </Path.RenderTransform>
  711. </Path>
  712. </Button.Content>
  713. </Button>
  714. </StackPanel>
  715. </Grid>
  716. <Border x:Name="Left_BG" Grid.Row="1" BorderBrush="{DynamicResource OuterBorder_BD_Highlight}" BorderThickness="1,0,0,0" Background="{DynamicResource OuterBorder_BG_Side}"/>
  717. <Border x:Name="Right_BG" Grid.Row="1" Grid.Column="2" BorderBrush="{DynamicResource OuterBorder_BD_Shadow}" RenderTransformOrigin="0.5,0.5" BorderThickness="1,0,0,0" Background="{DynamicResource OuterBorder_BG_Side}">
  718. <Border.RenderTransform>
  719. <TransformGroup>
  720. <ScaleTransform ScaleY="1" ScaleX="-1"/>
  721. <SkewTransform AngleY="0" AngleX="0"/>
  722. <RotateTransform Angle="0"/>
  723. <TranslateTransform/>
  724. </TransformGroup>
  725. </Border.RenderTransform>
  726. </Border>
  727. <Border x:Name="OuterBorder_LeftBottom" BorderBrush="{DynamicResource OuterBorder_BD_Highlight}" Background="{DynamicResource OuterBorder_BG_BottomConner}" BorderThickness="1,0,0,0" Grid.Row="2" RenderTransformOrigin="0.5,0.5">
  728. <Border.RenderTransform>
  729. <TransformGroup>
  730. <ScaleTransform ScaleY="-1" ScaleX="1"/>
  731. <SkewTransform AngleY="0" AngleX="0"/>
  732. <RotateTransform Angle="0"/>
  733. <TranslateTransform/>
  734. </TransformGroup>
  735. </Border.RenderTransform>
  736. <Border BorderBrush="{DynamicResource OuterBorder_BD_Shadow}" BorderThickness="0,1,0,0"/>
  737. </Border>
  738. <Border x:Name="Bottom_BG" BorderBrush="{DynamicResource OuterBorder_BD_Shadow}" BorderThickness="0,0,0,1" Background="{DynamicResource OuterBorder_BG_Bottom}" Grid.Column="1" Grid.Row="2"/>
  739. <Border x:Name="OuterBorder_RightBottom" BorderBrush="{DynamicResource OuterBorder_BD_Shadow}" Background="{DynamicResource OuterBorder_BG_BottomConner}" BorderThickness="1,1,0,0" Grid.Row="2" RenderTransformOrigin="0.5,0.5" Grid.Column="2">
  740. <Border.RenderTransform>
  741. <TransformGroup>
  742. <ScaleTransform ScaleY="-1" ScaleX="-1"/>
  743. <SkewTransform AngleY="0" AngleX="0"/>
  744. <RotateTransform Angle="0"/>
  745. <TranslateTransform/>
  746. </TransformGroup>
  747. </Border.RenderTransform>
  748. </Border>
  749. <ResizeGrip x:Name="ResizeGrip" HorizontalAlignment="Right" VerticalAlignment="Bottom" Grid.Row="2" Grid.Column="2"
  750. IsTabStop="False" Visibility="Hidden" WindowChrome.ResizeGripDirection="BottomRight" />
  751. </Grid>
  752. <ControlTemplate.Triggers>
  753. <Trigger Property="WindowState" Value="Maximized">
  754. <Setter TargetName="LayoutRoot" Property="Margin" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(WindowChrome.WindowChrome).ResizeBorderThickness}"/>
  755. <Setter TargetName="PART_MAX" Property="Command" Value="{x:Static SystemCommands.RestoreWindowCommand}"/>
  756. <Setter TargetName="PART_MAX" Property="Content">
  757. <Setter.Value>
  758. <Path Data="M0.8,4 L0.8,8 7.2,8 7.2,4 z M0,3 L8,3 8,11 0,11 z M4,0 L12,0 12,8 8.5,8 8.5,5 11,5 11,1 5,1 5,2.5 4,2.5 z" Fill="{DynamicResource Color_FG_Button_Window}" Height="11" Stretch="Fill" StrokeThickness="3" Width="12"/>
  759. </Setter.Value>
  760. </Setter>
  761. </Trigger>
  762. <Trigger Property="WindowState" Value="Normal">
  763. <Setter TargetName="LayoutRoot" Property="Margin" Value="0"/>
  764. <Setter TargetName="PART_MAX" Property="Command" Value="{x:Static SystemCommands.MaximizeWindowCommand}"/>
  765. <Setter TargetName="PART_MAX" Property="Content">
  766. <Setter.Value>
  767. <Path Data="M1,1 L1,5 9,5 9,1 z M0,0 L10,0 10,8 0,8 z" Fill="{DynamicResource Color_FG_Button_Window}" Stretch="Fill" StrokeThickness="3" Height="10" Width="10"/>
  768. </Setter.Value>
  769. </Setter>
  770. </Trigger>
  771. <Trigger Property="IsActive" Value="False">
  772. <Setter Property="BorderBrush" Value="#FF6F7785" />
  773. </Trigger>
  774. <Trigger Property="ResizeMode" Value="NoResize">
  775. <Setter TargetName="PART_MAX" Property="Visibility" Value="Collapsed" />
  776. </Trigger>
  777. <MultiTrigger>
  778. <MultiTrigger.Conditions>
  779. <Condition Property="ResizeMode" Value="CanResizeWithGrip" />
  780. <Condition Property="WindowState" Value="Normal" />
  781. </MultiTrigger.Conditions>
  782. <Setter TargetName="ResizeGrip" Property="Visibility" Value="Visible" />
  783. </MultiTrigger>
  784. </ControlTemplate.Triggers>
  785. </ControlTemplate>
  786. </Setter.Value>
  787. </Setter>
  788. </Style>
  789. <Style TargetType="{x:Type local:Gasline}">
  790. <Setter Property="Background" Value="{DynamicResource Color_BG_Gasline}"/>
  791. <Setter Property="BorderBrush" Value="Transparent"/>
  792. <Setter Property="BorderThickness" Value="0"/>
  793. <Setter Property="Orientation" Value="Horizontal"/>
  794. <Setter Property="HorizontalAlignment" Value="Stretch"/>
  795. <Setter Property="VerticalAlignment" Value="Center"/>
  796. <Setter Property="Width" Value="Auto"/>
  797. <Setter Property="Height" Value="8"/>
  798. <Setter Property="Template">
  799. <Setter.Value>
  800. <ControlTemplate TargetType="{x:Type local:Gasline}">
  801. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  802. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  803. <Rectangle Fill="{DynamicResource Color_BG_GasLine_3DBG02}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
  804. <Rectangle Fill="{DynamicResource Color_BD_GasLine_Border}" HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="1"/>
  805. <Rectangle Fill="{DynamicResource Color_BD_GasLine_Border}" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Height="1"/>
  806. </Grid>
  807. </Border>
  808. </ControlTemplate>
  809. </Setter.Value>
  810. </Setter>
  811. <Style.Triggers>
  812. <Trigger Property="Orientation" Value="Vertical">
  813. <Setter Property="HorizontalAlignment" Value="Center"/>
  814. <Setter Property="VerticalAlignment" Value="Stretch"/>
  815. <Setter Property="BorderThickness" Value="0"/>
  816. <Setter Property="Width" Value="8"/>
  817. <Setter Property="Height" Value="Auto"/>
  818. <Setter Property="Template">
  819. <Setter.Value>
  820. <ControlTemplate TargetType="{x:Type local:Gasline}">
  821. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  822. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  823. <Rectangle Fill="{DynamicResource Color_BG_GasLine_3DBG01}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
  824. <Rectangle Fill="{DynamicResource Color_BD_GasLine_Border}" HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="1"/>
  825. <Rectangle Fill="{DynamicResource Color_BD_GasLine_Border}" HorizontalAlignment="Right" VerticalAlignment="Stretch" Width="1"/>
  826. </Grid>
  827. </Border>
  828. </ControlTemplate>
  829. </Setter.Value>
  830. </Setter>
  831. </Trigger>
  832. </Style.Triggers>
  833. </Style>
  834. <Style TargetType="{x:Type local:GaslineJoint}">
  835. <Setter Property="JointType" Value="CROSS"/>
  836. <Setter Property="Width" Value="8"/>
  837. <Setter Property="Height" Value="8"/>
  838. <Setter Property="Background" Value="{DynamicResource Color_BG_Gasline}"/>
  839. <Setter Property="BorderBrush" Value="Transparent"/>
  840. <Setter Property="BorderThickness" Value="0"/>
  841. <Setter Property="Template">
  842. <Setter.Value>
  843. <ControlTemplate TargetType="{x:Type local:GaslineJoint}">
  844. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  845. <Viewbox>
  846. <Canvas x:Name="Fourth_Way" Width="8" Height="8">
  847. <Path Data="M4,4 L8,8 0,8 z M0,0 L8,0 4,4 z" Fill="{DynamicResource Color_BG_GasLine_3DBG01}" Height="8" Stretch="Fill" Width="8"/>
  848. <Path Data="M8,0 L8,8 4,4 z M0,0 L4,4 0,8 z" Fill="{DynamicResource Color_BG_GasLine_3DBG02}" Height="8" Stretch="Fill" Width="8"/>
  849. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Top="7"/>
  850. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Top="7" Canvas.Left="7"/>
  851. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Left="7"/>
  852. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1"/>
  853. </Canvas>
  854. </Viewbox>
  855. </Border>
  856. </ControlTemplate>
  857. </Setter.Value>
  858. </Setter>
  859. <Style.Triggers>
  860. <Trigger Property="JointType" Value="LEFT_TOP">
  861. <Setter Property="Background" Value="{DynamicResource Color_BG_Gasline}"/>
  862. <Setter Property="Template">
  863. <Setter.Value>
  864. <ControlTemplate TargetType="{x:Type local:GaslineJoint}">
  865. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  866. <Viewbox>
  867. <Canvas Width="8" Height="8">
  868. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG02}" Stretch="Fill" Width="8" Height="8" Data="M0,0 L8,0 8,8 z"/>
  869. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG01}" Stretch="Fill" Width="8" Height="8" Data="M0,0 L8,8 0,8 z"/>
  870. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="8" Height="1"/>
  871. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Left="7" Canvas.Top="7"/>
  872. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="7" Canvas.Top="1"/>
  873. </Canvas>
  874. </Viewbox>
  875. </Border>
  876. </ControlTemplate>
  877. </Setter.Value>
  878. </Setter>
  879. </Trigger>
  880. <Trigger Property="JointType" Value="LEFT_BOTTOM">
  881. <Setter Property="Background" Value="{DynamicResource Color_BG_Gasline}"/>
  882. <Setter Property="Template">
  883. <Setter.Value>
  884. <ControlTemplate TargetType="{x:Type local:GaslineJoint}">
  885. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  886. <Viewbox>
  887. <Canvas Width="8" Height="8">
  888. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG01}" Stretch="Fill" Width="8" Height="8" Data="M0,0 L8,0 0,8 z"/>
  889. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG02}" Stretch="Fill" Width="8" Height="8" Data="M8,0 L8,8 0,8 z"/>
  890. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Left="7"/>
  891. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="8"/>
  892. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="7" Height="1" Canvas.Left="1" Canvas.Top="7"/>
  893. </Canvas>
  894. </Viewbox>
  895. </Border>
  896. </ControlTemplate>
  897. </Setter.Value>
  898. </Setter>
  899. </Trigger>
  900. <Trigger Property="JointType" Value="RIGHT_TOP">
  901. <Setter Property="Background" Value="{DynamicResource Color_BG_Gasline}"/>
  902. <Setter Property="Template">
  903. <Setter.Value>
  904. <ControlTemplate TargetType="{x:Type local:GaslineJoint}">
  905. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  906. <Viewbox>
  907. <Canvas Width="8" Height="8">
  908. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG02}" Stretch="Fill" Width="8" Height="8" Data="M0,0 L8,0 0,8 z"/>
  909. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG01}" Stretch="Fill" Width="8" Height="8" Data="M8,0 L8,8 0,8 z"/>
  910. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Top="7"/>
  911. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="8" Height="1"/>
  912. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="7" Canvas.Left="7" Canvas.Top="1"/>
  913. </Canvas>
  914. </Viewbox>
  915. </Border>
  916. </ControlTemplate>
  917. </Setter.Value>
  918. </Setter>
  919. </Trigger>
  920. <Trigger Property="JointType" Value="RIGHT_BOTTOM">
  921. <Setter Property="Template">
  922. <Setter.Value>
  923. <ControlTemplate TargetType="{x:Type local:GaslineJoint}">
  924. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  925. <Viewbox>
  926. <Canvas Width="8" Height="8">
  927. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG01}" Stretch="Fill" Width="8" Height="8" Data="M0,0 L8,0 8,8 z"/>
  928. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG02}" Stretch="Fill" Width="8" Height="8" Data="M0,0 L8,8 0,8 z"/>
  929. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1"/>
  930. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="7" Height="1" Canvas.Top="7"/>
  931. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="8" Canvas.Left="7"/>
  932. </Canvas>
  933. </Viewbox>
  934. </Border>
  935. </ControlTemplate>
  936. </Setter.Value>
  937. </Setter>
  938. </Trigger>
  939. <Trigger Property="JointType" Value="LEFT">
  940. <Setter Property="Background" Value="{DynamicResource Color_BG_Gasline}"/>
  941. <Setter Property="Template">
  942. <Setter.Value>
  943. <ControlTemplate TargetType="{x:Type local:GaslineJoint}">
  944. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  945. <Viewbox>
  946. <Canvas Width="8" Height="8">
  947. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG01}" Stretch="Fill" Width="8" Height="8" Data="M0,0 L8,0 8,8 0,8 4,4 z"/>
  948. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG02}" Stretch="Fill" Width="4" Height="8" Data="M0,0 L4,4 0,8 z"/>
  949. <Rectangle Fill="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="8" Canvas.Left="7"/>
  950. <Rectangle Fill="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1"/>
  951. <Rectangle Fill="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Top="7"/>
  952. </Canvas>
  953. </Viewbox>
  954. </Border>
  955. </ControlTemplate>
  956. </Setter.Value>
  957. </Setter>
  958. </Trigger>
  959. <Trigger Property="JointType" Value="UP">
  960. <Setter Property="Background" Value="{DynamicResource Color_BG_Gasline}"/>
  961. <Setter Property="Template">
  962. <Setter.Value>
  963. <ControlTemplate TargetType="{x:Type local:GaslineJoint}">
  964. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  965. <Viewbox>
  966. <Canvas Width="8" Height="8">
  967. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG01}" Stretch="Fill" Width="8" Height="4" Data="M0,0 L8,0 4,4 z"/>
  968. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG02}" Stretch="Fill" Width="8" Height="8" Data="M0,0 L4,4 8,0 8,8 0,8 z"/>
  969. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="8" Height="1" Canvas.Top="7"/>
  970. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1"/>
  971. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Left="7"/>
  972. </Canvas>
  973. </Viewbox>
  974. </Border>
  975. </ControlTemplate>
  976. </Setter.Value>
  977. </Setter>
  978. </Trigger>
  979. <Trigger Property="JointType" Value="RIGHT">
  980. <Setter Property="Background" Value="{DynamicResource Color_BG_Gasline}"/>
  981. <Setter Property="Template">
  982. <Setter.Value>
  983. <ControlTemplate TargetType="{x:Type local:GaslineJoint}">
  984. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  985. <Viewbox>
  986. <Canvas Width="8" Height="8">
  987. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG01}" Stretch="Fill" Width="8" Height="8" Data="M0,0 L8,0 4,4 8,8 0,8 z"/>
  988. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG02}" Stretch="Fill" Width="4" Height="8" Data="M4,0 L4,8 0,4 z" Canvas.Left="4"/>
  989. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="8"/>
  990. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Left="7"/>
  991. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Left="7" Canvas.Top="7"/>
  992. </Canvas>
  993. </Viewbox>
  994. </Border>
  995. </ControlTemplate>
  996. </Setter.Value>
  997. </Setter>
  998. </Trigger>
  999. <Trigger Property="JointType" Value="DOWN">
  1000. <Setter Property="Background" Value="{DynamicResource Color_BG_Gasline}"/>
  1001. <Setter Property="Template">
  1002. <Setter.Value>
  1003. <ControlTemplate TargetType="{x:Type local:GaslineJoint}">
  1004. <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  1005. <Viewbox>
  1006. <Canvas Width="8" Height="8">
  1007. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG02}" Stretch="Fill" Width="8" Height="8" Data="M0,0 L8,0 8,8 4,4 0,8 z"/>
  1008. <Path Fill="{DynamicResource Color_BG_GasLine_3DBG01}" Stretch="Fill" Width="8" Height="4" Data="M4,0 L8,4 0,4 z" Canvas.Top="4"/>
  1009. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="8" Height="1"/>
  1010. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Top="7"/>
  1011. <Rectangle Stroke="{DynamicResource Color_BD_GasLine_Border}" Width="1" Height="1" Canvas.Left="7" Canvas.Top="7"/>
  1012. </Canvas>
  1013. </Viewbox>
  1014. </Border>
  1015. </ControlTemplate>
  1016. </Setter.Value>
  1017. </Setter>
  1018. </Trigger>
  1019. </Style.Triggers>
  1020. </Style>
  1021. <Style TargetType="{x:Type local:CarrierContentControl}">
  1022. <Setter Property="Template" >
  1023. <Setter.Value>
  1024. <ControlTemplate TargetType="{x:Type local:CarrierContentControl}">
  1025. <Border Background="{TemplateBinding Background}"
  1026. BorderBrush="{TemplateBinding BorderBrush}"
  1027. BorderThickness="{TemplateBinding BorderThickness}">
  1028. <Grid>
  1029. <!--<unitControls:CarrierView ></unitControls:CarrierView>-->
  1030. </Grid>
  1031. </Border>
  1032. </ControlTemplate>
  1033. </Setter.Value>
  1034. </Setter>
  1035. </Style>
  1036. </ResourceDictionary>