Resources_Kalea.xaml 101 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786
  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:Localization">
  5. <!-- ============== COLORS ============== -->
  6. <Color x:Key="NormalFgColor">#FFF1F3F4</Color>
  7. <Color x:Key="NormalBgColor">#FF4D555B</Color>
  8. <Color x:Key="NormalDarkBgColor">#FF464E53</Color>
  9. <Color x:Key="NormalBdColor">#FF31373A</Color>
  10. <Color x:Key="NormalDarkBdColor">#FF2F3437</Color>
  11. <Color x:Key="CheckBgColor">#FF31373A</Color>
  12. <Color x:Key="CheckBdColor">#FF54B3E5</Color>
  13. <Color x:Key="TrackBgColor">#FF383D42</Color>
  14. <Color x:Key="TrackBdColor">#FF2E3438</Color>
  15. <Color x:Key="TrackLightBdColor">#FF2E3338</Color>
  16. <Color x:Key="TrackDarkBdColor">#FF2C3135</Color>
  17. <Color x:Key="OverOverlay">#19CBEBFF</Color>
  18. <Color x:Key="OverFgColor">#FFF1F3F4</Color>
  19. <Color x:Key="PressOverlay">#646464</Color>
  20. <Color x:Key="FocusColor">#646464</Color>
  21. <Color x:Key="FocusGlowColor">#646464</Color>
  22. <Color x:Key="FocusTransparentGlowColor">#00114C74</Color>
  23. <Color x:Key="FocusShineColor">#646464</Color>
  24. <Color x:Key="FocusTransparentShineColor">#001B6F9C</Color>
  25. <Color x:Key="DisabledOverlay">#1468757E</Color>
  26. <Color x:Key="DisabledFgColor">#FF939B9F</Color>
  27. <Color x:Key="DisabledCheckBgColor">#FF31373A</Color>
  28. <Color x:Key="DisabledCheckBdColor">#FF6B9AB3</Color>
  29. <!-- ============== BRUSHES ============== -->
  30. <SolidColorBrush x:Key="NormalFgBrush" Color="{StaticResource NormalFgColor}"/>
  31. <LinearGradientBrush x:Key="NormalBgBrush" EndPoint="0.5,1" StartPoint="0.5,0"/>
  32. <SolidColorBrush x:Key="NormalDarkBgBrush" Color="{StaticResource NormalDarkBgColor}"/>
  33. <LinearGradientBrush x:Key="NormalBdBrush" EndPoint="0.5,1" StartPoint="0.5,0" />
  34. <SolidColorBrush x:Key="NormalDarkBdBrush" Color="{StaticResource NormalDarkBdColor}"/>
  35. <SolidColorBrush x:Key="TrackBgBrush" Color="{StaticResource TrackBgColor}"/>
  36. <LinearGradientBrush x:Key="TrackBdBrush" EndPoint="0.5,1" StartPoint="0.5,0"/>
  37. <SolidColorBrush x:Key="TrackLightBdBrush" Color="{StaticResource TrackLightBdColor}"/>
  38. <SolidColorBrush x:Key="TrackDarkBdBrush" Color="{StaticResource TrackDarkBdColor}"/>
  39. <SolidColorBrush x:Key="WindowBrush" Color="#FF3D4348"/>
  40. <SolidColorBrush x:Key="ToolTipFgBrush" Color="{StaticResource OverFgColor}"/>
  41. <SolidColorBrush x:Key="ToolTipBgBrush" Color="#FF466E87"/>
  42. <SolidColorBrush x:Key="ToolTipBdBrush" Color="#FF3A5E79"/>
  43. <SolidColorBrush x:Key="CaretBrush" Color="{StaticResource OverFgColor}"/>
  44. <SolidColorBrush x:Key="SelectionBrush" Color="{StaticResource CheckBgColor}"/>
  45. <!-- ============== CheckBox ============== -->
  46. <Style x:Key="{x:Type CheckBox}" TargetType="CheckBox">
  47. <Setter Property="SnapsToDevicePixels" Value="true"/>
  48. <Setter Property="TextElement.Foreground" Value="Black"/>
  49. <Setter Property="BorderThickness" Value="1" />
  50. <Setter Property="Template">
  51. <Setter.Value>
  52. <ControlTemplate TargetType="CheckBox">
  53. <BulletDecorator Background="Transparent">
  54. <BulletDecorator.Bullet>
  55. <Border x:Name="Border"
  56. Width="13"
  57. Height="13"
  58. CornerRadius="0"
  59. Background="Transparent"
  60. BorderThickness="1"
  61. BorderBrush="White">
  62. </Border>
  63. </BulletDecorator.Bullet>
  64. </BulletDecorator>
  65. <ControlTemplate.Triggers>
  66. <Trigger Property="IsChecked" Value="True">
  67. <Setter Property="Background" Value="#FF5B85BB" TargetName="Border"/>
  68. </Trigger>
  69. <!--<Trigger Property="IsMouseOver" Value="true">
  70. <Setter Property="Background" Value="red" TargetName="Border"/>
  71. </Trigger>
  72. <Trigger Property="IsPressed" Value="true">
  73. <Setter Property="Background" Value="yellow" TargetName="Border"/>
  74. <Setter Property="BorderBrush" Value="green" TargetName="Border"/>
  75. </Trigger>
  76. <Trigger Property="IsEnabled" Value="false">
  77. <Setter Property="Background" Value="blue" TargetName="Border"/>
  78. <Setter Property="BorderBrush" Value="white" TargetName="Border"/>
  79. </Trigger>-->
  80. </ControlTemplate.Triggers>
  81. </ControlTemplate>
  82. </Setter.Value>
  83. </Setter>
  84. <Style.Triggers>
  85. <Trigger Property="IsMouseOver" Value="True">
  86. <Setter Property="Background" Value="LightSkyBlue" />
  87. </Trigger>
  88. </Style.Triggers>
  89. </Style>
  90. <!--<Style x:Key="{x:Type CheckBox}" TargetType="CheckBox">
  91. <Setter Property="SnapsToDevicePixels" Value="true"/>
  92. <Setter Property="Template">
  93. <Setter.Value>
  94. <ControlTemplate TargetType="CheckBox">
  95. <BulletDecorator Background="Transparent">
  96. <BulletDecorator.Bullet>
  97. <Border x:Name="Border"
  98. Width="13"
  99. Height="13"
  100. CornerRadius="0"
  101. Background="Transparent"
  102. BorderThickness="1"
  103. BorderBrush="White">
  104. </Border>
  105. </BulletDecorator.Bullet>
  106. <ContentPresenter Margin="4,0,0,0"
  107. VerticalAlignment="Center"
  108. HorizontalAlignment="Left"
  109. RecognizesAccessKey="True"/>
  110. </BulletDecorator>
  111. </ControlTemplate>
  112. </Setter.Value>
  113. </Setter>
  114. </Style>-->
  115. <!-- ============== DEFAULT CONTROL STLYE ============== -->
  116. <Style x:Key="NoesisControlStyle">
  117. <!--<Setter Property="Control.Background" Value="{StaticResource NormalBgBrush}"/>-->
  118. <!--<Setter Property="Control.BorderBrush" Value="{StaticResource NormalBdBrush}"/>-->
  119. <Setter Property="Control.BorderThickness" Value="1"/>
  120. <Setter Property="Control.HorizontalContentAlignment" Value="Stretch"/>
  121. <Setter Property="Control.VerticalContentAlignment" Value="Stretch"/>
  122. <Setter Property="Control.Padding" Value="0"/>
  123. <Setter Property="Control.IsTabStop" Value="True"/>
  124. <Setter Property="Control.OverridesDefaultStyle" Value="False"/>
  125. </Style>
  126. <!-- ============== TEXT BOX ============== -->
  127. <!-- TextBoxScrollViewer Template -->
  128. <ControlTemplate x:Key="TextBoxScrollViewer" TargetType="{x:Type ScrollViewer}">
  129. <ScrollContentPresenter x:Name="ScrollContentPresenter" Margin="{TemplateBinding Padding}"/>
  130. </ControlTemplate>
  131. <!-- TextBox NoWrap Template -->
  132. <ControlTemplate x:Key="TextBoxNoWrapTemplate" TargetType="{x:Type TextBox}">
  133. <Grid>
  134. <VisualStateManager.VisualStateGroups>
  135. <VisualStateGroup x:Name="CommonStates">
  136. <VisualStateGroup.Transitions>
  137. <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
  138. <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
  139. <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
  140. <VisualTransition From="Disabled" GeneratedDuration="0:0:0.1"/>
  141. </VisualStateGroup.Transitions>
  142. <VisualState x:Name="Normal"/>
  143. <VisualState x:Name="Disabled">
  144. <Storyboard>
  145. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
  146. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  147. </DoubleAnimationUsingKeyFrames>
  148. </Storyboard>
  149. </VisualState>
  150. <VisualState x:Name="ReadOnly"/>
  151. <VisualState x:Name="MouseOver">
  152. <Storyboard>
  153. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="OverBorder">
  154. <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
  155. </DoubleAnimationUsingKeyFrames>
  156. </Storyboard>
  157. </VisualState>
  158. </VisualStateGroup>
  159. <VisualStateGroup x:Name="FocusStates">
  160. <VisualStateGroup.Transitions>
  161. <VisualTransition GeneratedDuration="0:0:0.1" To="Focused"/>
  162. <VisualTransition From="Focused" GeneratedDuration="0:0:0.3"/>
  163. </VisualStateGroup.Transitions>
  164. <VisualState x:Name="Unfocused"/>
  165. <VisualState x:Name="Focused">
  166. <Storyboard>
  167. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusBorder">
  168. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  169. </DoubleAnimationUsingKeyFrames>
  170. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
  171. <EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
  172. </DoubleAnimationUsingKeyFrames>
  173. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
  174. <EasingDoubleKeyFrame KeyTime="0" Value="0.15"/>
  175. </DoubleAnimationUsingKeyFrames>
  176. </Storyboard>
  177. </VisualState>
  178. </VisualStateGroup>
  179. </VisualStateManager.VisualStateGroups>
  180. <Border x:Name="BaseBorder"
  181. Background="{TemplateBinding Background}"
  182. BorderBrush="{TemplateBinding BorderBrush}"
  183. BorderThickness="{TemplateBinding BorderThickness}"
  184. CornerRadius="1"/>
  185. <Border x:Name="OverBorder"
  186. BorderThickness="{TemplateBinding BorderThickness}"
  187. CornerRadius="1">
  188. <Border.Background>
  189. <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
  190. </Border.Background>
  191. </Border>
  192. <Border x:Name="FocusBorder"
  193. BorderThickness="{TemplateBinding BorderThickness}"
  194. CornerRadius="1">
  195. <Border.BorderBrush>
  196. <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
  197. </Border.BorderBrush>
  198. <Border x:Name="FocusInnerBorder"
  199. BorderThickness="1"
  200. CornerRadius="0.01">
  201. <Border.Background>
  202. <SolidColorBrush Color="{StaticResource FocusGlowColor}" Opacity="0"/>
  203. </Border.Background>
  204. <Border.BorderBrush>
  205. <SolidColorBrush Color="{StaticResource FocusShineColor}" Opacity="0"/>
  206. </Border.BorderBrush>
  207. </Border>
  208. </Border>
  209. <Border x:Name="DisabledBorder"
  210. CornerRadius="1.5">
  211. <Border.Background>
  212. <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
  213. </Border.Background>
  214. </Border>
  215. <Border BorderThickness="{TemplateBinding BorderThickness}">
  216. <ScrollViewer x:Name="PART_ContentHost"
  217. Template="{StaticResource TextBoxScrollViewer}"
  218. Padding="{TemplateBinding Padding}"
  219. Foreground="{TemplateBinding Foreground}"/>
  220. </Border>
  221. </Grid>
  222. </ControlTemplate>
  223. <!-- TextBox Wrap Template -->
  224. <ControlTemplate x:Key="TextBoxWrapTemplate" TargetType="{x:Type TextBox}">
  225. <Grid>
  226. <VisualStateManager.VisualStateGroups>
  227. <VisualStateGroup x:Name="CommonStates">
  228. <VisualStateGroup.Transitions>
  229. <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
  230. <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
  231. <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
  232. <VisualTransition From="Disabled" GeneratedDuration="0:0:0.1"/>
  233. </VisualStateGroup.Transitions>
  234. <VisualState x:Name="Normal"/>
  235. <VisualState x:Name="Disabled">
  236. <Storyboard>
  237. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
  238. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  239. </DoubleAnimationUsingKeyFrames>
  240. </Storyboard>
  241. </VisualState>
  242. <VisualState x:Name="ReadOnly"/>
  243. <VisualState x:Name="MouseOver">
  244. <Storyboard>
  245. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="OverBorder">
  246. <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
  247. </DoubleAnimationUsingKeyFrames>
  248. </Storyboard>
  249. </VisualState>
  250. </VisualStateGroup>
  251. <VisualStateGroup x:Name="FocusStates">
  252. <VisualStateGroup.Transitions>
  253. <VisualTransition GeneratedDuration="0:0:0.1" To="Focused"/>
  254. <VisualTransition From="Focused" GeneratedDuration="0:0:0.3"/>
  255. </VisualStateGroup.Transitions>
  256. <VisualState x:Name="Unfocused"/>
  257. <VisualState x:Name="Focused">
  258. <Storyboard>
  259. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusBorder">
  260. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  261. </DoubleAnimationUsingKeyFrames>
  262. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
  263. <EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
  264. </DoubleAnimationUsingKeyFrames>
  265. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
  266. <EasingDoubleKeyFrame KeyTime="0" Value="0.15"/>
  267. </DoubleAnimationUsingKeyFrames>
  268. </Storyboard>
  269. </VisualState>
  270. </VisualStateGroup>
  271. </VisualStateManager.VisualStateGroups>
  272. <Border x:Name="BaseBorder"
  273. Background="{TemplateBinding Background}"
  274. BorderBrush="{TemplateBinding BorderBrush}"
  275. BorderThickness="{TemplateBinding BorderThickness}"
  276. CornerRadius="1">
  277. <ScrollViewer x:Name="PART_ContentHost1"
  278. Padding="{TemplateBinding Padding}"
  279. Foreground="{TemplateBinding Foreground}"/>
  280. </Border>
  281. <Border x:Name="OverBorder"
  282. BorderThickness="{TemplateBinding BorderThickness}"
  283. CornerRadius="1">
  284. <Border.Background>
  285. <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
  286. </Border.Background>
  287. </Border>
  288. <Border x:Name="FocusBorder"
  289. BorderThickness="{TemplateBinding BorderThickness}"
  290. CornerRadius="1">
  291. <Border.BorderBrush>
  292. <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
  293. </Border.BorderBrush>
  294. <Border x:Name="FocusInnerBorder"
  295. BorderThickness="1"
  296. CornerRadius="0.01">
  297. <Border.Background>
  298. <SolidColorBrush Color="{StaticResource FocusGlowColor}" Opacity="0"/>
  299. </Border.Background>
  300. <Border.BorderBrush>
  301. <SolidColorBrush Color="{StaticResource FocusShineColor}" Opacity="0"/>
  302. </Border.BorderBrush>
  303. </Border>
  304. </Border>
  305. <Border x:Name="DisabledBorder"
  306. CornerRadius="1.5">
  307. <Border.Background>
  308. <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
  309. </Border.Background>
  310. </Border>
  311. <Border BorderThickness="{TemplateBinding BorderThickness}">
  312. <ScrollViewer x:Name="PART_ContentHost"
  313. Padding="{TemplateBinding Padding}"
  314. Foreground="{TemplateBinding Foreground}"/>
  315. </Border>
  316. </Grid>
  317. </ControlTemplate>
  318. <!-- TextBox Style -->
  319. <Style TargetType="{x:Type TextBox}">
  320. <Style.Resources>
  321. <Storyboard x:Key="MouseOverOn">
  322. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
  323. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="{StaticResource OverFgColor}"/>
  324. </ColorAnimationUsingKeyFrames>
  325. </Storyboard>
  326. <Storyboard x:Key="MouseOverOff">
  327. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
  328. <EasingColorKeyFrame KeyTime="0:0:0.3" Value="{StaticResource NormalFgColor}"/>
  329. </ColorAnimationUsingKeyFrames>
  330. </Storyboard>
  331. <Storyboard x:Key="OnDisabled">
  332. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
  333. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="{StaticResource DisabledFgColor}"/>
  334. </ColorAnimationUsingKeyFrames>
  335. </Storyboard>
  336. <Storyboard x:Key="OnEnabled">
  337. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
  338. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="{StaticResource NormalFgColor}"/>
  339. </ColorAnimationUsingKeyFrames>
  340. </Storyboard>
  341. </Style.Resources>
  342. <Setter Property="Foreground">
  343. <Setter.Value>
  344. <SolidColorBrush Color="{StaticResource NormalFgColor}"/>
  345. </Setter.Value>
  346. </Setter>
  347. <Setter Property="Background" Value="{StaticResource TrackBgBrush}"/>
  348. <Setter Property="BorderBrush" Value="{StaticResource TrackBdBrush}"/>
  349. <Setter Property="CaretBrush" Value="{StaticResource CaretBrush}"/>
  350. <Setter Property="SelectionBrush" Value="{StaticResource SelectionBrush}"/>
  351. <Setter Property="SelectionOpacity" Value="0.5"/>
  352. <Setter Property="Padding" Value="2,4"/>
  353. <Setter Property="TextAlignment" Value="Left"/>
  354. <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
  355. <Setter Property="AllowDrop" Value="True"/>
  356. <Style.BasedOn>
  357. <StaticResource ResourceKey="NoesisControlStyle"/>
  358. </Style.BasedOn>
  359. <Style.Triggers>
  360. <Trigger Property="IsMouseOver" Value="True">
  361. <Trigger.ExitActions>
  362. <BeginStoryboard Storyboard="{StaticResource MouseOverOff}"/>
  363. </Trigger.ExitActions>
  364. <Trigger.EnterActions>
  365. <BeginStoryboard Storyboard="{StaticResource MouseOverOn}"/>
  366. </Trigger.EnterActions>
  367. </Trigger>
  368. <Trigger Property="TextWrapping" Value="NoWrap">
  369. <Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
  370. <Setter Property="VerticalScrollBarVisibility" Value="Hidden"/>
  371. <Setter Property="Template" Value="{StaticResource TextBoxNoWrapTemplate}"/>
  372. </Trigger>
  373. <Trigger Property="TextWrapping" Value="Wrap">
  374. <Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
  375. <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
  376. <Setter Property="Template" Value="{StaticResource TextBoxWrapTemplate}"/>
  377. </Trigger>
  378. <Trigger Property="TextWrapping" Value="WrapWithOverflow">
  379. <Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
  380. <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
  381. <Setter Property="Template" Value="{StaticResource TextBoxWrapTemplate}"/>
  382. </Trigger>
  383. <Trigger Property="IsEnabled" Value="False">
  384. <Trigger.ExitActions>
  385. <BeginStoryboard Storyboard="{StaticResource OnEnabled}"/>
  386. </Trigger.ExitActions>
  387. <Trigger.EnterActions>
  388. <BeginStoryboard Storyboard="{StaticResource OnDisabled}"/>
  389. </Trigger.EnterActions>
  390. </Trigger>
  391. </Style.Triggers>
  392. </Style>
  393. <!-- ============== PASSWORD BOX ============== -->
  394. <!-- TextBox NoWrap Template -->
  395. <ControlTemplate x:Key="PasswordTemplate" TargetType="{x:Type PasswordBox}">
  396. <Grid>
  397. <VisualStateManager.VisualStateGroups>
  398. <VisualStateGroup x:Name="CommonStates">
  399. <VisualStateGroup.Transitions>
  400. <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
  401. <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
  402. <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
  403. <VisualTransition From="Disabled" GeneratedDuration="0:0:0.1"/>
  404. </VisualStateGroup.Transitions>
  405. <VisualState x:Name="Normal"/>
  406. <VisualState x:Name="Disabled">
  407. <Storyboard>
  408. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
  409. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  410. </DoubleAnimationUsingKeyFrames>
  411. </Storyboard>
  412. </VisualState>
  413. <VisualState x:Name="ReadOnly"/>
  414. <VisualState x:Name="MouseOver">
  415. <Storyboard>
  416. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="OverBorder">
  417. <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
  418. </DoubleAnimationUsingKeyFrames>
  419. </Storyboard>
  420. </VisualState>
  421. </VisualStateGroup>
  422. <VisualStateGroup x:Name="FocusStates">
  423. <VisualStateGroup.Transitions>
  424. <VisualTransition GeneratedDuration="0:0:0.1" To="Focused"/>
  425. <VisualTransition From="Focused" GeneratedDuration="0:0:0.3"/>
  426. </VisualStateGroup.Transitions>
  427. <VisualState x:Name="Unfocused"/>
  428. <VisualState x:Name="Focused">
  429. <Storyboard>
  430. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusBorder">
  431. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  432. </DoubleAnimationUsingKeyFrames>
  433. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
  434. <EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
  435. </DoubleAnimationUsingKeyFrames>
  436. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
  437. <EasingDoubleKeyFrame KeyTime="0" Value="0.15"/>
  438. </DoubleAnimationUsingKeyFrames>
  439. </Storyboard>
  440. </VisualState>
  441. </VisualStateGroup>
  442. </VisualStateManager.VisualStateGroups>
  443. <Border x:Name="BaseBorder"
  444. Background="{TemplateBinding Background}"
  445. BorderBrush="{TemplateBinding BorderBrush}"
  446. BorderThickness="{TemplateBinding BorderThickness}"
  447. CornerRadius="1"/>
  448. <Border x:Name="OverBorder"
  449. BorderThickness="{TemplateBinding BorderThickness}"
  450. CornerRadius="1">
  451. <Border.Background>
  452. <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
  453. </Border.Background>
  454. </Border>
  455. <Border x:Name="FocusBorder"
  456. BorderThickness="{TemplateBinding BorderThickness}"
  457. CornerRadius="1">
  458. <Border.BorderBrush>
  459. <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
  460. </Border.BorderBrush>
  461. <Border x:Name="FocusInnerBorder"
  462. BorderThickness="1"
  463. CornerRadius="0.01">
  464. <Border.Background>
  465. <SolidColorBrush Color="{StaticResource FocusGlowColor}" Opacity="0"/>
  466. </Border.Background>
  467. <Border.BorderBrush>
  468. <SolidColorBrush Color="{StaticResource FocusShineColor}" Opacity="0"/>
  469. </Border.BorderBrush>
  470. </Border>
  471. </Border>
  472. <Border x:Name="DisabledBorder"
  473. CornerRadius="1.5">
  474. <Border.Background>
  475. <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
  476. </Border.Background>
  477. </Border>
  478. <Border BorderThickness="{TemplateBinding BorderThickness}">
  479. <ScrollViewer x:Name="PART_ContentHost"
  480. Template="{StaticResource TextBoxScrollViewer}"
  481. Padding="{TemplateBinding Padding}"
  482. Foreground="{TemplateBinding Foreground}"/>
  483. </Border>
  484. </Grid>
  485. </ControlTemplate>
  486. <!-- TextBox Style -->
  487. <Style TargetType="{x:Type PasswordBox}">
  488. <Style.Resources>
  489. <Storyboard x:Key="MouseOverOn">
  490. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
  491. <EasingColorKeyFrame KeyTime="0:0:0.1" Value="{StaticResource OverFgColor}"/>
  492. </ColorAnimationUsingKeyFrames>
  493. </Storyboard>
  494. <Storyboard x:Key="MouseOverOff">
  495. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
  496. <EasingColorKeyFrame KeyTime="0:0:0.3" Value="{StaticResource NormalFgColor}"/>
  497. </ColorAnimationUsingKeyFrames>
  498. </Storyboard>
  499. <Storyboard x:Key="OnDisabled">
  500. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
  501. <EasingColorKeyFrame KeyTime="0:0:0.5" Value="{StaticResource DisabledFgColor}"/>
  502. </ColorAnimationUsingKeyFrames>
  503. </Storyboard>
  504. <Storyboard x:Key="OnEnabled">
  505. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
  506. <EasingColorKeyFrame KeyTime="0:0:0.5" Value="{StaticResource NormalFgColor}"/>
  507. </ColorAnimationUsingKeyFrames>
  508. </Storyboard>
  509. </Style.Resources>
  510. <Setter Property="Foreground">
  511. <Setter.Value>
  512. <SolidColorBrush Color="{StaticResource NormalFgColor}"/>
  513. </Setter.Value>
  514. </Setter>
  515. <Setter Property="Background" Value="{StaticResource TrackBgBrush}"/>
  516. <Setter Property="BorderBrush" Value="{StaticResource TrackBdBrush}"/>
  517. <Setter Property="CaretBrush" Value="{StaticResource CaretBrush}"/>
  518. <Setter Property="SelectionBrush" Value="{StaticResource SelectionBrush}"/>
  519. <Setter Property="SelectionOpacity" Value="0.5"/>
  520. <Setter Property="Padding" Value="2,4"/>
  521. <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
  522. <Setter Property="AllowDrop" Value="true"/>
  523. <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
  524. <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
  525. <Setter Property="Template" Value="{StaticResource PasswordTemplate}"/>
  526. <Style.BasedOn>
  527. <StaticResource ResourceKey="NoesisControlStyle"/>
  528. </Style.BasedOn>
  529. <Style.Triggers>
  530. <Trigger Property="IsMouseOver" Value="True">
  531. <Trigger.ExitActions>
  532. <BeginStoryboard Storyboard="{StaticResource MouseOverOff}"/>
  533. </Trigger.ExitActions>
  534. <Trigger.EnterActions>
  535. <BeginStoryboard Storyboard="{StaticResource MouseOverOn}"/>
  536. </Trigger.EnterActions>
  537. </Trigger>
  538. <Trigger Property="IsEnabled" Value="False">
  539. <Trigger.ExitActions>
  540. <BeginStoryboard Storyboard="{StaticResource OnEnabled}"/>
  541. </Trigger.ExitActions>
  542. <Trigger.EnterActions>
  543. <BeginStoryboard Storyboard="{StaticResource OnDisabled}"/>
  544. </Trigger.EnterActions>
  545. </Trigger>
  546. </Style.Triggers>
  547. </Style>
  548. <!-- ==============LoginTextBox ============== -->
  549. <Style x:Key="placeHolder" TargetType="{x:Type TextBox}" BasedOn="{StaticResource NoesisControlStyle}">
  550. <Setter Property="Template">
  551. <Setter.Value>
  552. <ControlTemplate TargetType="{x:Type TextBox}">
  553. <Grid>
  554. <TextBox Text="{Binding Path=Text,
  555. RelativeSource={RelativeSource TemplatedParent},
  556. Mode=TwoWay,
  557. UpdateSourceTrigger=PropertyChanged}"
  558. x:Name="textSource"
  559. Background="Transparent"
  560. Panel.ZIndex="2" />
  561. <TextBox Text="{TemplateBinding Tag}" Background="{TemplateBinding Background}" Panel.ZIndex="1">
  562. <TextBox.Style>
  563. <Style TargetType="{x:Type TextBox}">
  564. <Setter Property="Foreground" Value="Transparent"/>
  565. <Style.Triggers>
  566. <DataTrigger Binding="{Binding Path=Text, Source={x:Reference textSource}}" Value="">
  567. <Setter Property="Foreground" Value="LightGray"/>
  568. </DataTrigger>
  569. </Style.Triggers>
  570. </Style>
  571. </TextBox.Style>
  572. </TextBox>
  573. </Grid>
  574. </ControlTemplate>
  575. </Setter.Value>
  576. </Setter>
  577. </Style>
  578. <!-- ============== TAB CONTROL ============== -->
  579. <Style TargetType="{x:Type TabItem}" x:Key="door_select_btn" BasedOn="{StaticResource NoesisControlStyle}">
  580. <Setter Property="Padding" Value="10,0"/>
  581. <Setter Property="HorizontalAlignment" Value="Center"/>
  582. <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
  583. <Setter Property="VerticalContentAlignment" Value="Stretch"/>
  584. <Setter Property="Template">
  585. <Setter.Value>
  586. <ControlTemplate TargetType="{x:Type TabItem}">
  587. <Grid x:Name="Tab" Margin="0">
  588. <Border x:Name="BaseBorder"
  589. Background="{TemplateBinding Background}"
  590. BorderBrush="{TemplateBinding BorderBrush}"
  591. BorderThickness="{TemplateBinding BorderThickness}"
  592. CornerRadius="1,1,0,0"/>
  593. <Border x:Name="OverBorder"
  594. BorderThickness="{TemplateBinding BorderThickness}"
  595. CornerRadius="1,1,0,0">
  596. <Border.Background>
  597. <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
  598. </Border.Background>
  599. </Border>
  600. <Border x:Name="FocusBorder"
  601. BorderThickness="{TemplateBinding BorderThickness}"
  602. CornerRadius="1,1,0,0">
  603. <Border.BorderBrush>
  604. <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
  605. </Border.BorderBrush>
  606. <Border x:Name="FocusInnerBorder"
  607. BorderThickness="1,1,1,0"
  608. CornerRadius="0.01,0.01,0,0">
  609. <Border.Background>
  610. <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0.5" Opacity="0">
  611. <GradientStop Color="{StaticResource FocusGlowColor}" Offset="0"/>
  612. <GradientStop Color="{StaticResource FocusTransparentGlowColor}" Offset="1"/>
  613. </LinearGradientBrush>
  614. </Border.Background>
  615. <Border.BorderBrush>
  616. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0">
  617. <GradientStop Color="{StaticResource FocusShineColor}" Offset="0"/>
  618. <GradientStop Color="{StaticResource FocusTransparentShineColor}" Offset="1"/>
  619. </LinearGradientBrush>
  620. </Border.BorderBrush>
  621. </Border>
  622. </Border>
  623. <Border x:Name="DisabledBorder"
  624. CornerRadius="1.5,1.5,0,0">
  625. <Border.Background>
  626. <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
  627. </Border.Background>
  628. </Border>
  629. <Border x:Name="TabBorder"
  630. BorderThickness="{TemplateBinding BorderThickness}"
  631. Padding="{TemplateBinding Padding}"
  632. CornerRadius="1,1,0,0">
  633. <ContentPresenter x:Name="ContentHost"
  634. ContentSource="Header"
  635. HorizontalAlignment="Left"
  636. VerticalAlignment="Center"/>
  637. </Border>
  638. <Border Name="Border" Margin="0,0,0,0" Background="Transparent">
  639. <ContentPresenter x:Name="ContentSite" VerticalAlignment="Center"
  640. HorizontalAlignment="Center"
  641. ContentSource="Header"
  642. RecognizesAccessKey="True">
  643. </ContentPresenter>
  644. </Border>
  645. </Grid>
  646. <ControlTemplate.Triggers>
  647. <Trigger Property="IsSelected" Value="True">
  648. <Setter Property="Panel.ZIndex" Value="100" />
  649. <Setter TargetName="Border" Property="Background" Value="#1B1B1B" />
  650. <Setter TargetName="Border" Property="TextElement.Foreground" Value="#5B85BB" />
  651. </Trigger>
  652. <Trigger Property="IsSelected" Value="False">
  653. <Setter TargetName="Border" Property="TextElement.Foreground" Value="{x:Null}" />
  654. </Trigger>
  655. </ControlTemplate.Triggers>
  656. </ControlTemplate>
  657. </Setter.Value>
  658. </Setter>
  659. </Style>
  660. <!-- TabControl Style -->
  661. <Style TargetType="{x:Type TabControl}" BasedOn="{StaticResource NoesisControlStyle}">
  662. <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
  663. <Setter Property="VerticalContentAlignment" Value="Stretch"/>
  664. <Setter Property="Padding" Value="4"/>
  665. <Setter Property="Template">
  666. <Setter.Value>
  667. <ControlTemplate TargetType="{x:Type TabControl}">
  668. <Grid KeyboardNavigation.TabNavigation="Local">
  669. <Grid.RowDefinitions>
  670. <RowDefinition Height="Auto"/>
  671. <RowDefinition Height="*"/>
  672. </Grid.RowDefinitions>
  673. <VisualStateManager.VisualStateGroups>
  674. <VisualStateGroup x:Name="CommonStates">
  675. <VisualStateGroup.Transitions>
  676. <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
  677. <VisualTransition From="Disabled" GeneratedDuration="0:0:0.1"/>
  678. </VisualStateGroup.Transitions>
  679. <VisualState x:Name="Normal"/>
  680. <VisualState x:Name="Disabled">
  681. <Storyboard>
  682. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
  683. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  684. </DoubleAnimationUsingKeyFrames>
  685. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="PART_SelectedContentHost">
  686. <EasingColorKeyFrame KeyTime="0" Value="{StaticResource DisabledFgColor}"/>
  687. </ColorAnimationUsingKeyFrames>
  688. </Storyboard>
  689. </VisualState>
  690. </VisualStateGroup>
  691. </VisualStateManager.VisualStateGroups>
  692. <TabPanel x:Name="HeaderPanel"
  693. Grid.Row="0"
  694. Panel.ZIndex="1"
  695. IsItemsHost="True"
  696. KeyboardNavigation.TabIndex="1"/>
  697. <Border x:Name="BaseBorder"
  698. Grid.Row="1"
  699. Background="{TemplateBinding Background}"
  700. CornerRadius="0,1,1,1"/>
  701. <Border x:Name="DisabledBorder"
  702. Grid.Row="1"
  703. CornerRadius="0,1.5,1.5,1.5">
  704. <Border.Background>
  705. <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
  706. </Border.Background>
  707. </Border>
  708. <Border x:Name="SelectedContentBorder"
  709. Grid.Row="1"
  710. BorderThickness="{TemplateBinding BorderThickness}"
  711. KeyboardNavigation.DirectionalNavigation="Contained"
  712. KeyboardNavigation.TabIndex="2"
  713. KeyboardNavigation.TabNavigation="Local">
  714. <ContentPresenter x:Name="PART_SelectedContentHost"
  715. ContentSource="SelectedContent"
  716. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  717. VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
  718. <TextElement.Foreground>
  719. <SolidColorBrush Color="{StaticResource NormalFgColor}"/>
  720. </TextElement.Foreground>
  721. </ContentPresenter>
  722. </Border>
  723. </Grid>
  724. </ControlTemplate>
  725. </Setter.Value>
  726. </Setter>
  727. </Style>
  728. <!-- TabItem Style -->
  729. <Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource NoesisControlStyle}">
  730. <Setter Property="Padding" Value="10,0"/>
  731. <Setter Property="HorizontalAlignment" Value="Center"/>
  732. <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
  733. <Setter Property="VerticalContentAlignment" Value="Stretch"/>
  734. <Setter Property="Template">
  735. <Setter.Value>
  736. <ControlTemplate TargetType="{x:Type TabItem}">
  737. <Grid x:Name="Tab" Margin="0">
  738. <Border x:Name="BaseBorder"
  739. Background="{TemplateBinding Background}"
  740. BorderBrush="{TemplateBinding BorderBrush}"
  741. BorderThickness="{TemplateBinding BorderThickness}"
  742. CornerRadius="1,1,0,0"/>
  743. <Border x:Name="OverBorder"
  744. BorderThickness="{TemplateBinding BorderThickness}"
  745. CornerRadius="1,1,0,0">
  746. <Border.Background>
  747. <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
  748. </Border.Background>
  749. </Border>
  750. <Border x:Name="FocusBorder"
  751. BorderThickness="{TemplateBinding BorderThickness}"
  752. CornerRadius="1,1,0,0">
  753. <Border.BorderBrush>
  754. <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
  755. </Border.BorderBrush>
  756. <Border x:Name="FocusInnerBorder"
  757. BorderThickness="1,1,1,0"
  758. CornerRadius="0.01,0.01,0,0">
  759. <Border.Background>
  760. <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0.5" Opacity="0">
  761. <GradientStop Color="{StaticResource FocusGlowColor}" Offset="0"/>
  762. <GradientStop Color="{StaticResource FocusTransparentGlowColor}" Offset="1"/>
  763. </LinearGradientBrush>
  764. </Border.Background>
  765. <Border.BorderBrush>
  766. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0">
  767. <GradientStop Color="{StaticResource FocusShineColor}" Offset="0"/>
  768. <GradientStop Color="{StaticResource FocusTransparentShineColor}" Offset="1"/>
  769. </LinearGradientBrush>
  770. </Border.BorderBrush>
  771. </Border>
  772. </Border>
  773. <Border x:Name="DisabledBorder"
  774. CornerRadius="1.5,1.5,0,0">
  775. <Border.Background>
  776. <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
  777. </Border.Background>
  778. </Border>
  779. <Border x:Name="TabBorder"
  780. BorderThickness="{TemplateBinding BorderThickness}"
  781. Padding="{TemplateBinding Padding}"
  782. CornerRadius="1,1,0,0">
  783. <ContentPresenter x:Name="ContentHost"
  784. ContentSource="Header"
  785. HorizontalAlignment="Left"
  786. VerticalAlignment="Center"/>
  787. </Border>
  788. <Border Name="Border" Margin="0,0,0,0" Background="Transparent">
  789. <ContentPresenter x:Name="ContentSite" VerticalAlignment="Center"
  790. HorizontalAlignment="Center"
  791. ContentSource="Header"
  792. RecognizesAccessKey="True">
  793. </ContentPresenter>
  794. </Border>
  795. </Grid>
  796. <ControlTemplate.Triggers>
  797. <Trigger Property="IsSelected" Value="True">
  798. <Setter Property="Panel.ZIndex" Value="100" />
  799. <Setter TargetName="Border" Property="Background" Value="Black" />
  800. <Setter TargetName="Border" Property="TextElement.Foreground" Value="#5B85BB" />
  801. </Trigger>
  802. <Trigger Property="IsSelected" Value="False">
  803. <Setter TargetName="Border" Property="TextElement.Foreground" Value="{x:Null}" />
  804. </Trigger>
  805. </ControlTemplate.Triggers>
  806. </ControlTemplate>
  807. </Setter.Value>
  808. </Setter>
  809. </Style>
  810. <!-- ItemsControl Style -->
  811. <Style TargetType="{x:Type ItemsControl}" BasedOn="{StaticResource NoesisControlStyle}">
  812. <Setter Property="Template">
  813. <Setter.Value>
  814. <ControlTemplate TargetType="{x:Type ItemsControl}">
  815. <Border
  816. Background="{TemplateBinding Background}"
  817. BorderBrush="{TemplateBinding BorderBrush}"
  818. BorderThickness="{TemplateBinding BorderThickness}"
  819. Padding="{TemplateBinding Padding}">
  820. <ItemsPresenter />
  821. </Border>
  822. </ControlTemplate>
  823. </Setter.Value>
  824. </Setter>
  825. </Style>
  826. <!-- ============== SCROLL BAR ============== -->
  827. <!-- ScrollBarLineButton Style -->
  828. <Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}" BasedOn="{StaticResource NoesisControlStyle}">
  829. <Setter Property="SnapsToDevicePixels" Value="True"/>
  830. <Setter Property="OverridesDefaultStyle" Value="True"/>
  831. <Setter Property="IsTabStop" Value="False"/>
  832. <Setter Property="Focusable" Value="False"/>
  833. <Setter Property="Template">
  834. <Setter.Value>
  835. <ControlTemplate TargetType="{x:Type RepeatButton}">
  836. <Border Width="4" Background="#FFEBEBEB" SnapsToDevicePixels="True"/>
  837. </ControlTemplate>
  838. </Setter.Value>
  839. </Setter>
  840. </Style>
  841. <!-- ScrollBarPageButton Style -->
  842. <Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}" BasedOn="{StaticResource NoesisControlStyle}">
  843. <Setter Property="IsTabStop" Value="False"/>
  844. <Setter Property="Focusable" Value="False"/>
  845. <Setter Property="Template">
  846. <Setter.Value>
  847. <ControlTemplate TargetType="{x:Type RepeatButton}">
  848. <Border Background="Transparent"/>
  849. </ControlTemplate>
  850. </Setter.Value>
  851. </Setter>
  852. </Style>
  853. <!-- HorizontalScrollBarThumb Style -->
  854. <Style x:Key="HorizontalScrollBarThumb" TargetType="{x:Type Thumb}" BasedOn="{StaticResource NoesisControlStyle}">
  855. <Setter Property="IsTabStop" Value="False"/>
  856. <Setter Property="Focusable" Value="False"/>
  857. <Setter Property="Template">
  858. <Setter.Value>
  859. <ControlTemplate TargetType="{x:Type Thumb}">
  860. <Grid>
  861. <VisualStateManager.VisualStateGroups>
  862. <VisualStateGroup x:Name="CommonStates">
  863. <VisualStateGroup.Transitions>
  864. <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
  865. <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
  866. <VisualTransition GeneratedDuration="0" To="Pressed"/>
  867. <VisualTransition From="Pressed" GeneratedDuration="0:0:0.2"/>
  868. <VisualTransition GeneratedDuration="0:0:0.2" To="Disabled"/>
  869. <VisualTransition From="Disabled" GeneratedDuration="0:0:0.2"/>
  870. </VisualStateGroup.Transitions>
  871. <VisualState x:Name="Normal"/>
  872. <VisualState x:Name="MouseOver">
  873. <Storyboard>
  874. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
  875. <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/>
  876. </DoubleAnimationUsingKeyFrames>
  877. </Storyboard>
  878. </VisualState>
  879. <VisualState x:Name="Pressed">
  880. <Storyboard>
  881. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
  882. <EasingDoubleKeyFrame KeyTime="0" Value="0.9"/>
  883. </DoubleAnimationUsingKeyFrames>
  884. </Storyboard>
  885. </VisualState>
  886. <VisualState x:Name="Disabled">
  887. <Storyboard>
  888. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
  889. <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
  890. </DoubleAnimationUsingKeyFrames>
  891. </Storyboard>
  892. </VisualState>
  893. </VisualStateGroup>
  894. </VisualStateManager.VisualStateGroups>
  895. <Border x:Name="BaseBorder"
  896. Background="Transparent"/>
  897. <Border x:Name="DragBorder"
  898. CornerRadius="1"
  899. Margin="0,4">
  900. <Border.Background>
  901. <SolidColorBrush Color="{StaticResource CheckBgColor}" Opacity="0.3"/>
  902. </Border.Background>
  903. </Border>
  904. </Grid>
  905. </ControlTemplate>
  906. </Setter.Value>
  907. </Setter>
  908. </Style>
  909. <!-- HorizontalScrollbar Template -->
  910. <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type ScrollBar}">
  911. <Grid
  912. Background="Transparent"
  913. MinHeight="{TemplateBinding MaxHeight}"
  914. MaxHeight="{TemplateBinding MaxHeight}">
  915. <Grid.ColumnDefinitions>
  916. <ColumnDefinition MinWidth="{TemplateBinding MaxHeight}" MaxWidth="{TemplateBinding MaxHeight}"/>
  917. <ColumnDefinition Width="*"/>
  918. <ColumnDefinition MinWidth="{TemplateBinding MaxHeight}" MaxWidth="{TemplateBinding MaxHeight}"/>
  919. </Grid.ColumnDefinitions>
  920. <Track x:Name="PART_Track" Grid.Column="0" Grid.ColumnSpan="3" Margin="1,0" Orientation="Horizontal">
  921. <Track.DecreaseRepeatButton>
  922. <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageLeftCommand"/>
  923. </Track.DecreaseRepeatButton>
  924. <Track.Thumb>
  925. <Thumb x:Name="Thumb" Style="{StaticResource HorizontalScrollBarThumb}" IsEnabled="False"/>
  926. </Track.Thumb>
  927. <Track.IncreaseRepeatButton>
  928. <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageRightCommand"/>
  929. </Track.IncreaseRepeatButton>
  930. </Track>
  931. <RepeatButton x:Name="LeftLineButton"
  932. Grid.Column="0"
  933. Style="{StaticResource ScrollBarLineButton}"
  934. Command="ScrollBar.LineLeftCommand">
  935. <Geometry>M 4 0 L 4 8 L 0 4 Z</Geometry>
  936. </RepeatButton>
  937. <RepeatButton x:Name="RightLineButton"
  938. Grid.Column="2"
  939. Style="{StaticResource ScrollBarLineButton}"
  940. Command="ScrollBar.LineRightCommand">
  941. <Geometry>M 0 0 L 4 4 L 0 8 Z</Geometry>
  942. </RepeatButton>
  943. </Grid>
  944. <ControlTemplate.Triggers>
  945. <Trigger Property="IsMouseOver" Value="True">
  946. <Setter TargetName="Thumb" Property="IsEnabled" Value="True"/>
  947. </Trigger>
  948. <Trigger SourceName="LeftLineButton" Property="IsMouseOver" Value="True">
  949. <Setter TargetName="Thumb" Property="IsEnabled" Value="False"/>
  950. </Trigger>
  951. <Trigger SourceName="RightLineButton" Property="IsMouseOver" Value="True">
  952. <Setter TargetName="Thumb" Property="IsEnabled" Value="False"/>
  953. </Trigger>
  954. </ControlTemplate.Triggers>
  955. </ControlTemplate>
  956. <!-- VerticalScrollBarThumb Style -->
  957. <Style x:Key="VerticalScrollBarThumb" TargetType="{x:Type Thumb}" BasedOn="{StaticResource NoesisControlStyle}">
  958. <Setter Property="IsTabStop" Value="False"/>
  959. <Setter Property="Focusable" Value="False"/>
  960. <Setter Property="Template">
  961. <Setter.Value>
  962. <ControlTemplate TargetType="{x:Type Thumb}">
  963. <Grid>
  964. <VisualStateManager.VisualStateGroups>
  965. <VisualStateGroup x:Name="CommonStates">
  966. <VisualStateGroup.Transitions>
  967. <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
  968. <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
  969. <VisualTransition GeneratedDuration="0" To="Pressed"/>
  970. <VisualTransition From="Pressed" GeneratedDuration="0:0:0.2"/>
  971. <VisualTransition GeneratedDuration="0:0:0.2" To="Disabled"/>
  972. <VisualTransition From="Disabled" GeneratedDuration="0:0:0.2"/>
  973. </VisualStateGroup.Transitions>
  974. <VisualState x:Name="Normal"/>
  975. <VisualState x:Name="MouseOver">
  976. <Storyboard>
  977. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
  978. <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/>
  979. </DoubleAnimationUsingKeyFrames>
  980. </Storyboard>
  981. </VisualState>
  982. <VisualState x:Name="Pressed">
  983. <Storyboard>
  984. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
  985. <EasingDoubleKeyFrame KeyTime="0" Value="0.9"/>
  986. </DoubleAnimationUsingKeyFrames>
  987. </Storyboard>
  988. </VisualState>
  989. <VisualState x:Name="Disabled">
  990. <Storyboard>
  991. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
  992. <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
  993. </DoubleAnimationUsingKeyFrames>
  994. </Storyboard>
  995. </VisualState>
  996. </VisualStateGroup>
  997. </VisualStateManager.VisualStateGroups>
  998. <Border x:Name="BaseBorder" Background="Transparent"/>
  999. <Border x:Name="DragBorder" CornerRadius="1" Margin="4,0">
  1000. <Border.Background>
  1001. <SolidColorBrush Color="{StaticResource CheckBgColor}" Opacity="0.3"/>
  1002. </Border.Background>
  1003. </Border>
  1004. </Grid>
  1005. </ControlTemplate>
  1006. </Setter.Value>
  1007. </Setter>
  1008. </Style>
  1009. <!-- VerticalScrollBar Template -->
  1010. <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type ScrollBar}">
  1011. <Grid
  1012. Background="Transparent"
  1013. MinWidth="{TemplateBinding MaxWidth}"
  1014. MaxWidth="{TemplateBinding MaxWidth}">
  1015. <Grid.RowDefinitions>
  1016. <RowDefinition MinHeight="{TemplateBinding MaxWidth}" MaxHeight="{TemplateBinding MaxWidth}"/>
  1017. <RowDefinition Height="*"/>
  1018. <RowDefinition MinHeight="{TemplateBinding MaxWidth}" MaxHeight="{TemplateBinding MaxWidth}"/>
  1019. </Grid.RowDefinitions>
  1020. <Track x:Name="PART_Track" Grid.Row="0" Grid.RowSpan="3" Margin="0,1" Orientation="Vertical" IsDirectionReversed="True">
  1021. <Track.DecreaseRepeatButton>
  1022. <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageUpCommand"/>
  1023. </Track.DecreaseRepeatButton>
  1024. <Track.Thumb>
  1025. <Thumb x:Name="Thumb" Style="{StaticResource VerticalScrollBarThumb}" IsEnabled="False"/>
  1026. </Track.Thumb>
  1027. <Track.IncreaseRepeatButton>
  1028. <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageDownCommand"/>
  1029. </Track.IncreaseRepeatButton>
  1030. </Track>
  1031. <RepeatButton x:Name="UpLineButton"
  1032. Grid.Row="0"
  1033. Style="{StaticResource ScrollBarLineButton}"
  1034. Command="ScrollBar.LineUpCommand">
  1035. <Geometry>M 0 4 L 8 4 L 4 0 Z</Geometry>
  1036. </RepeatButton>
  1037. <RepeatButton x:Name="DownLineButton"
  1038. Grid.Row="2"
  1039. Style="{StaticResource ScrollBarLineButton}"
  1040. Command="ScrollBar.LineDownCommand">
  1041. <Geometry>M 0 0 L 4 4 L 8 0 Z</Geometry>
  1042. </RepeatButton>
  1043. </Grid>
  1044. <ControlTemplate.Triggers>
  1045. <Trigger Property="IsMouseOver" Value="True">
  1046. <Setter TargetName="Thumb" Property="IsEnabled" Value="True"/>
  1047. </Trigger>
  1048. <Trigger SourceName="UpLineButton" Property="IsMouseOver" Value="True">
  1049. <Setter TargetName="Thumb" Property="IsEnabled" Value="False"/>
  1050. </Trigger>
  1051. <Trigger SourceName="DownLineButton" Property="IsMouseOver" Value="True">
  1052. <Setter TargetName="Thumb" Property="IsEnabled" Value="False"/>
  1053. </Trigger>
  1054. </ControlTemplate.Triggers>
  1055. </ControlTemplate>
  1056. <!-- ScrollBar Style -->
  1057. <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource NoesisControlStyle}">
  1058. <Style.Triggers>
  1059. <Trigger Property="Orientation" Value="Horizontal">
  1060. <Setter Property="MaxHeight" Value="15"/>
  1061. <Setter Property="Template" Value="{StaticResource HorizontalScrollBar}"/>
  1062. </Trigger>
  1063. <Trigger Property="Orientation" Value="Vertical">
  1064. <Setter Property="MaxWidth" Value="15"/>
  1065. <Setter Property="Template" Value="{StaticResource VerticalScrollBar}"/>
  1066. </Trigger>
  1067. </Style.Triggers>
  1068. </Style>
  1069. <!-- ============== SCROLL VIEWER ============== -->
  1070. <!-- ScrollViewer Style -->
  1071. <Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource NoesisControlStyle}">
  1072. <Setter Property="Background" Value="Transparent"/>
  1073. <Setter Property="MinWidth" Value="15"/>
  1074. <Setter Property="MinHeight" Value="15"/>
  1075. <Setter Property="PanningMode" Value="Both"/>
  1076. <Setter Property="HorizontalScrollBarVisibility" Value="Disabled"/>
  1077. <Setter Property="VerticalScrollBarVisibility" Value="Visible"/>
  1078. <Setter Property="Template">
  1079. <Setter.Value>
  1080. <ControlTemplate TargetType="{x:Type ScrollViewer}">
  1081. <Grid Background="{TemplateBinding Background}">
  1082. <Grid.ColumnDefinitions>
  1083. <ColumnDefinition Width="*"/>
  1084. <ColumnDefinition Width="Auto"/>
  1085. </Grid.ColumnDefinitions>
  1086. <Grid.RowDefinitions>
  1087. <RowDefinition Height="*"/>
  1088. <RowDefinition Height="Auto"/>
  1089. </Grid.RowDefinitions>
  1090. <ScrollContentPresenter
  1091. Grid.Column="0"
  1092. Grid.ColumnSpan="2"
  1093. Grid.Row="0"
  1094. Grid.RowSpan="2"
  1095. Content="{TemplateBinding Content}"
  1096. ContentTemplate="{TemplateBinding ContentTemplate}"
  1097. ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
  1098. CanContentScroll="{TemplateBinding CanContentScroll}"
  1099. Margin="{TemplateBinding Padding}"/>
  1100. <!-- The visibility of the ScrollBars is controlled by the implementation of the control -->
  1101. <ScrollBar x:Name="PART_HorizontalScrollBar"
  1102. Grid.Column="0"
  1103. Grid.ColumnSpan="2"
  1104. Grid.Row="1"
  1105. Orientation="Horizontal"
  1106. MaxHeight="{TemplateBinding MinHeight}"
  1107. Template="{StaticResource HorizontalScrollBar}"
  1108. Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
  1109. Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
  1110. ViewportSize="{TemplateBinding ViewportWidth}"
  1111. Minimum="0"
  1112. Maximum="{TemplateBinding ScrollableWidth}"/>
  1113. <ScrollBar x:Name="PART_VerticalScrollBar"
  1114. Grid.Column="1"
  1115. Grid.Row="0"
  1116. Grid.RowSpan="2"
  1117. Orientation="Vertical"
  1118. MaxWidth="{TemplateBinding MinWidth}"
  1119. Template="{StaticResource VerticalScrollBar}"
  1120. Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
  1121. Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
  1122. ViewportSize="{TemplateBinding ViewportHeight}"
  1123. Minimum="0"
  1124. Maximum="{TemplateBinding ScrollableHeight}"/>
  1125. </Grid>
  1126. <ControlTemplate.Triggers>
  1127. <Trigger SourceName="PART_HorizontalScrollBar" Property="IsMouseOver" Value="True">
  1128. <Setter TargetName="PART_HorizontalScrollBar" Property="Panel.ZIndex" Value="1"/>
  1129. </Trigger>
  1130. <Trigger SourceName="PART_VerticalScrollBar" Property="IsMouseOver" Value="True">
  1131. <Setter TargetName="PART_VerticalScrollBar" Property="Panel.ZIndex" Value="1"/>
  1132. </Trigger>
  1133. </ControlTemplate.Triggers>
  1134. </ControlTemplate>
  1135. </Setter.Value>
  1136. </Setter>
  1137. </Style>
  1138. <SolidColorBrush x:Key="TextForegroundBrush" Color="#FF482E19"/>
  1139. <LinearGradientBrush x:Key="IndentBackground" EndPoint="0.5,1" StartPoint="0.5,0">
  1140. <GradientStop Offset="0" Color="#FF2E6E9B"/>
  1141. <GradientStop Offset="0.95" Color="#FF143B5E"/>
  1142. <GradientStop Offset="0.89" Color="#FF1C4E78"/>
  1143. </LinearGradientBrush>
  1144. <LinearGradientBrush x:Key="IndentBorder" EndPoint="0.5,1" StartPoint="0.5,0">
  1145. <GradientStop Color="#FF17436A" Offset="0"/>
  1146. <GradientStop Color="#FF164269" Offset="1"/>
  1147. </LinearGradientBrush>
  1148. <LinearGradientBrush x:Key="LabelBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
  1149. <GradientStop Color="White" Offset="0"/>
  1150. <GradientStop Color="#FFCBCBCB" Offset="1"/>
  1151. </LinearGradientBrush>
  1152. <LinearGradientBrush x:Key="ControlShadowBrush" EndPoint="0.5,1" StartPoint="0.5,0">
  1153. <GradientStop Color="#11000000" Offset="0"/>
  1154. <GradientStop Color="#33000000" Offset="1"/>
  1155. </LinearGradientBrush>
  1156. <LinearGradientBrush x:Key="SliderBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
  1157. <GradientStop Color="#FF1A7FB2"/>
  1158. <GradientStop Color="#FF24648F" Offset="0.5"/>
  1159. <GradientStop Color="#FF1A7FB2" Offset="1"/>
  1160. </LinearGradientBrush>
  1161. <LinearGradientBrush x:Key="SliderBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
  1162. <GradientStop Offset="0" Color="#0C000000"/>
  1163. <GradientStop Offset="0.5" Color="#4C000000"/>
  1164. <GradientStop Offset="1" Color="#0C000000"/>
  1165. </LinearGradientBrush>
  1166. <LinearGradientBrush x:Key="SliderIndicatorBrush" StartPoint="0,0" EndPoint="0,1">
  1167. <GradientStop Offset="0" Color="#00000000"/>
  1168. <GradientStop Offset="1" Color="#4C000000"/>
  1169. </LinearGradientBrush>
  1170. <LinearGradientBrush x:Key="ComboBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
  1171. <GradientStop Color="#FF131313"/>
  1172. <GradientStop Color="#FF131313" Offset="1"/>
  1173. </LinearGradientBrush>
  1174. <LinearGradientBrush x:Key="NoesisLogoBg" EndPoint="0.5,1" StartPoint="0.5,0">
  1175. <GradientStop Offset="0" Color="#FF184C79"/>
  1176. <GradientStop Offset="0.05" Color="#FF1B5688"/>
  1177. <GradientStop Offset="1" Color="#FF123859"/>
  1178. </LinearGradientBrush>
  1179. <SolidColorBrush x:Key="NoesisLogoFg" Color="#07000000"/>
  1180. <SolidColorBrush x:Key="NoesisLogoBlueBg" Color="#FF2AA6E2"/>
  1181. <Geometry x:Key="NoesisLogoGeometry">
  1182. M64.552314,61.408115 L90.473059,64.639252 65.938536,97.224111 96.858771,170.22477 151.36087,176.44062 176.65871,144.70187 186.30899,167.69955 161.59547,200.607 80.812194,191.57223 39.827483,94.941438 z
  1183. M48.254649,23.461594 L152.39867,36.273918 169.09616,74.476677 153.32091,95.305482 137.28592,57.748096 58.689337,48.038651 58.673125,48.036747 26.085236,92.157874 40.901858,129.9017 16.161385,126.74894 0.032970434,88.96424 z
  1184. M136.8885,0 L177.71051,4.9764633 210.32399,79.460176 147.07187,163.27949 105.70369,158.62394 95.540381,134.55325 136.09376,139.68585 183.81151,76.187043 161.88087,25.886173 121.79224,19.86055 z
  1185. </Geometry>
  1186. <Geometry x:Key="NoesisTextGeometry">
  1187. M92.8579999677658,70.3415300000004L91.6092999677657,70.3415300000004C89.1117999677657,70.3415300000004 86.3690999677657,69.0553500000004 84.6772999677657,67.5409700000003 83.3359999677656,66.3402600000004 81.3786999677656,63.7640900000003 79.5695999677656,61.6829800000004L48.2047999677656,14.2132800000004C44.6023999677656,9.61943000000042 40.5841999677656,5.85798000000045 37.5730999677657,3.3297700000004 32.8352999677656,1.39255000000037 29.1355999677657,0.416200000000344 22.8921999677656,0.416200000000344L-3.22343520764434E-08,0.416200000000344 -3.22343520764434E-08,91.5688500000003 21.6435999677657,91.5688500000003 21.6435999677657,21.6435500000003 22.8921999677656,21.6435500000003C25.3893999677656,21.6435500000003 27.0235999677656,22.4759800000004 29.1048999677656,23.7246500000003 31.1705999677658,25.5488600000003 33.1231999677656,27.6454000000003 34.6437999677657,30.1582000000003L66.0398999677656,78.0749800000003C69.6422999677656,82.7973200000003 72.2215999677657,85.6954300000003 75.5205999677657,88.6398700000003 80.0990999677657,90.7209900000004 84.9497999677657,91.9850800000002 91.6092999677657,91.9850800000002L114.501399967766,91.9850800000002 114.501399967766,2.27373673749166E-13 92.8579999677658,2.27373673749166E-13z
  1188. M206.253499967766,3.41060514011881E-13L160.667099967766,3.41060514011881E-13C137.774799967766,3.41060514011881E-13,126.120799967766,9.57309000000032,126.120799967766,29.1355300000003L126.120799967766,62.4333200000003C126.120799967766,81.5795200000003,137.774799967766,91.5688500000003,160.667099967766,91.5688500000003L206.253499967766,91.5688500000003C229.145899967766,91.5688500000003,240.800099967766,81.9957600000003,240.800099967766,62.4333200000003L240.800099967766,29.1355300000003C240.800099967766,9.98931000000039,229.145899967766,3.41060514011881E-13,206.253499967766,3.41060514011881E-13z
  1189. M218.323899967766,62.4333200000003C218.323899967766,67.4279700000003,214.161899967766,70.3415300000004,206.253499967766,70.3415300000004L160.667099967766,70.3415300000004C152.758899967766,70.3415300000004,148.596999967766,67.8441800000004,148.596999967766,62.4333200000003L148.596999967766,29.1355300000003C148.596999967766,23.7246500000003,152.758899967766,21.2273400000003,160.667099967766,21.2273400000003L206.253499967766,21.2273400000003C214.161899967766,21.2273400000003,218.323899967766,23.7246500000003,218.323899967766,29.1355300000003z
  1190. M274.513899967766,65.7631100000002L274.513899967766,56.6062200000003 366.277899967766,56.6062200000003 366.277899967766,35.3788800000003 274.513899967766,35.3788800000003 274.513899967766,26.2219700000003C274.513899967766,23.3084200000003,276.178999967766,21.6435500000002,279.508699967766,21.6435500000002L366.694299967766,21.6435500000002 366.694299967766,2.27373673749166E-13 279.508699967766,2.27373673749166E-13C261.194999967766,2.27373673749166E-13,252.037899967766,7.49200000000019,252.037899967766,22.0597700000002L252.037899967766,68.6766500000002C252.037899967766,83.6606500000002,261.194999967766,91.1526500000002,279.508699967766,91.1526500000002L367.110299967766,91.1526500000002 367.110299967766,69.9253100000002 279.508699967766,69.9253100000002C276.178999967766,70.3415300000001,274.513899967766,68.6766500000002,274.513899967766,65.7631100000002z
  1191. M464.725099967766,34.9626400000003L404.986699967766,34.9626400000003C401.656899967766,34.9626400000003,399.575899967766,33.7139800000003,399.575899967766,31.6328800000003L399.575899967766,24.5570900000003C399.575899967766,22.4759800000004,401.240899967766,21.2273400000003,404.986699967766,21.2273400000003L489.281899967766,21.2273400000003 489.281899967766,3.41060514011881E-13 404.986699967766,3.41060514011881E-13C386.672899967766,3.41060514011881E-13,377.516099967766,7.4920000000003,377.516099967766,22.0597700000003L377.516099967766,36.6275400000003C377.516099967766,49.5304200000003,386.672899967766,56.1899800000003,404.986699967766,56.1899800000003L464.725099967766,56.1899800000003C468.054699967766,56.1899800000003,469.719799967766,57.4386300000003,469.719799967766,59.5197500000004L469.719799967766,67.0117400000004C469.719799967766,69.0928600000004,468.054699967766,70.3415300000004,464.725099967766,70.3415300000004L380.429599967766,70.3415300000004 380.429599967766,91.5688500000003 464.725099967766,91.5688500000003C483.038799967766,91.5688500000003,492.195599967766,84.0768600000003,492.195599967766,69.5090700000003L492.195599967766,57.0224100000002C492.195599967766,42.4546400000002,483.038799967766,34.9626400000003,464.725099967766,34.9626400000003z
  1192. M503.433699967766,3.41060514011881E-13L525.909499967766,3.41060514011881E-13 525.909499967766,91.1526500000003 503.433699967766,91.1526500000003z
  1193. M625.010299967766,34.9626400000003L565.054499967766,34.9626400000003C561.724799967766,34.9626400000003,559.643599967766,33.7139800000003,559.643599967766,31.6328800000003L559.643599967766,24.5570900000003C559.643599967766,22.4759800000004,561.308399967766,21.2273400000003,565.054499967766,21.2273400000003L649.567499967766,21.2273400000003 649.567499967766,3.41060514011881E-13 565.054499967766,3.41060514011881E-13C546.740699967766,3.41060514011881E-13,537.583799967766,7.4920000000003,537.583799967766,22.0597700000003L537.583799967766,36.6275400000003C537.583799967766,49.5304200000003,546.740699967766,56.1899800000003,565.054499967766,56.1899800000003L625.010299967766,56.1899800000003C628.340199967766,56.1899800000003,630.005099967766,57.4386300000003,630.005099967766,59.5197500000004L630.005099967766,67.0117400000004C630.005099967766,69.0928600000004,628.340199967766,70.3415300000004,625.010299967766,70.3415300000004L540.497399967766,70.3415300000004 540.497399967766,91.5688500000003 625.010299967766,91.5688500000003C643.324099967766,91.5688500000003,652.481199967766,84.0768600000003,652.481199967766,69.5090700000003L652.481199967766,57.0224100000002C652.064899967766,42.4546400000002,642.907899967766,34.9626400000003,625.010299967766,34.9626400000003z
  1194. </Geometry>
  1195. <Geometry x:Key="NoesisGuiTextGeometry">
  1196. M218.200700106049,67.01174C218.200700106049,69.09286,216.535800106049,70.34153,213.205900106049,70.34153L153.648800106049,70.34153C150.319100106049,70.34153,148.237800106049,69.09286,148.237800106049,67.01174L148.237800106049,0.416200000000003 125.762100106049,0.416200000000003 125.762100106049,69.50907C125.762100106049,84.49309,134.918800106049,91.98508,153.232600106049,91.98508L212.789900106049,91.98508C231.103500106049,91.98508,240.260500106049,84.49309,240.260500106049,69.92531L240.260500106049,2.5410988417629E-21 217.784500106049,2.5410988417629E-21 217.784500106049,67.01174z
  1197. M251.914700106049,2.5410988417629E-21L274.390700106049,2.5410988417629E-21 274.390700106049,91.15265 251.914700106049,91.15265z
  1198. M64.3942001060486,35.79507L64.3942001060486,58.27109 92.2812001060488,58.27109 92.2812001060488,70.34153 27.4707001060488,70.34153C24.1410001060485,70.34153,22.0598001060485,68.67665,22.0598001060485,65.76311L22.0598001060485,25.80576C22.0598001060485,22.89222,23.7246001060485,21.2273399999999,27.4707001060488,21.2273399999999L112.259700106049,21.2273399999999 112.259700106049,2.5410988417629E-21 27.4707001060488,2.5410988417629E-21C9.15670010604844,2.5410988417629E-21,1.06048446468776E-07,7.49199999999996,1.06048446468776E-07,22.05977L1.06048446468776E-07,68.67665C1.06048446468776E-07,83.66065,9.15670010604844,91.15265,27.4707001060488,91.15265L114.757000106049,91.15265 114.757000106049,35.37888 64.3942001060486,35.37888z
  1199. </Geometry>
  1200. <ScaleTransform x:Key="NoesisLogoTransform" ScaleX="1.5" ScaleY="1.5"/>
  1201. <ControlTemplate x:Key="LabelTemplate" TargetType="{x:Type Label}">
  1202. <Grid>
  1203. <TextBlock Text="{TemplateBinding Content}" Margin="1,1,-1,-1" Foreground="#30000000" TextWrapping="Wrap" LineHeight="{TemplateBinding MinHeight}"/>
  1204. <TextBlock Text="{TemplateBinding Content}" TextWrapping="Wrap" LineHeight="{TemplateBinding MinHeight}"/>
  1205. </Grid>
  1206. </ControlTemplate>
  1207. <Style TargetType="{x:Type Label}">
  1208. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1209. <Setter Property="Template" Value="{StaticResource LabelTemplate}"/>
  1210. </Style>
  1211. <Style x:Key="FocusStyle" TargetType="{x:Type Control}">
  1212. <Setter Property="Template">
  1213. <Setter.Value>
  1214. <ControlTemplate TargetType="{x:Type Control}">
  1215. <Border CornerRadius="2" BorderThickness="1" Margin="1">
  1216. <Border.BorderBrush>
  1217. <LinearGradientBrush>
  1218. <GradientStop Offset="0.0" Color="#22E0F8FF"/>
  1219. <GradientStop Offset="0.5" Color="#88E0F8FF"/>
  1220. <GradientStop Offset="1.0" Color="#22E0F8FF"/>
  1221. </LinearGradientBrush>
  1222. </Border.BorderBrush>
  1223. </Border>
  1224. </ControlTemplate>
  1225. </Setter.Value>
  1226. </Setter>
  1227. </Style>
  1228. <Style TargetType="{x:Type RepeatButton}" x:Key="SliderIncreaseButtonStyle">
  1229. <Setter Property="SnapsToDevicePixels" Value="True"/>
  1230. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1231. <Setter Property="IsTabStop" Value="False"/>
  1232. <Setter Property="Focusable" Value="False"/>
  1233. <Setter Property="Template">
  1234. <Setter.Value>
  1235. <ControlTemplate TargetType="{x:Type RepeatButton}">
  1236. <Border Height="4" Background="#7A7A7A" SnapsToDevicePixels="True"/>
  1237. </ControlTemplate>
  1238. </Setter.Value>
  1239. </Setter>
  1240. </Style>
  1241. <Style TargetType="{x:Type RepeatButton}" x:Key="AmbientSliderIncreaseButtonStyle">
  1242. <Setter Property="SnapsToDevicePixels" Value="True"/>
  1243. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1244. <Setter Property="IsTabStop" Value="False"/>
  1245. <Setter Property="Focusable" Value="False"/>
  1246. <Setter Property="Template">
  1247. <Setter.Value>
  1248. <ControlTemplate TargetType="{x:Type RepeatButton}">
  1249. <Border Height="4" Background="Transparent" SnapsToDevicePixels="True"/>
  1250. </ControlTemplate>
  1251. </Setter.Value>
  1252. </Setter>
  1253. </Style>
  1254. <Style TargetType="{x:Type RepeatButton}" x:Key="AmbientSliderDecreaseButtonStyle">
  1255. <Setter Property="SnapsToDevicePixels" Value="True"/>
  1256. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1257. <Setter Property="Template">
  1258. <Setter.Value>
  1259. <ControlTemplate TargetType="{x:Type RepeatButton}">
  1260. <Border Height="4" SnapsToDevicePixels="True" CornerRadius="2" Background="Transparent">
  1261. </Border>
  1262. </ControlTemplate>
  1263. </Setter.Value>
  1264. </Setter>
  1265. </Style>
  1266. <Style TargetType="{x:Type RepeatButton}" x:Key="SliderDecreaseButtonStyle">
  1267. <Setter Property="SnapsToDevicePixels" Value="True"/>
  1268. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1269. <Setter Property="Template">
  1270. <Setter.Value>
  1271. <ControlTemplate TargetType="{x:Type RepeatButton}">
  1272. <Border Height="4" SnapsToDevicePixels="True" CornerRadius="2" Background="#5B85BB" >
  1273. </Border>
  1274. </ControlTemplate>
  1275. </Setter.Value>
  1276. </Setter>
  1277. </Style>
  1278. <Style x:Key="SliderButtonStyle" TargetType="{x:Type RepeatButton}">
  1279. <Setter Property="SnapsToDevicePixels" Value="True"/>
  1280. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1281. <Setter Property="IsTabStop" Value="False"/>
  1282. <Setter Property="Focusable" Value="False"/>
  1283. <Setter Property="Template">
  1284. <Setter.Value>
  1285. <ControlTemplate TargetType="{x:Type RepeatButton}">
  1286. <Border Width="4" Background="#5B85BB" SnapsToDevicePixels="True"/>
  1287. </ControlTemplate>
  1288. </Setter.Value>
  1289. </Setter>
  1290. </Style>
  1291. <Style TargetType="{x:Type Thumb}" x:Key="SliderThumbStyle">
  1292. <Setter Property="SnapsToDevicePixels" Value="True"/>
  1293. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1294. <Setter Property="Height" Value="20"/>
  1295. <Setter Property="Width" Value="20"></Setter>
  1296. <Setter Property="Template">
  1297. <Setter.Value>
  1298. <ControlTemplate TargetType="{x:Type Thumb}">
  1299. <Border CornerRadius="7">
  1300. <Ellipse Width="20" Height="20" Fill="#5B85BB"/>
  1301. </Border>
  1302. </ControlTemplate>
  1303. </Setter.Value>
  1304. </Setter>
  1305. </Style>
  1306. <ControlTemplate x:Key="SliderTemplate" TargetType="{x:Type Slider}">
  1307. <Border BorderThickness="1" CornerRadius="3" UseLayoutRounding="True" >
  1308. <Border>
  1309. <Grid>
  1310. <Track x:Name="PART_Track">
  1311. <Track.DecreaseRepeatButton>
  1312. <RepeatButton x:Name="DecBtn"
  1313. Style="{StaticResource SliderDecreaseButtonStyle}"/>
  1314. </Track.DecreaseRepeatButton>
  1315. <Track.IncreaseRepeatButton>
  1316. <RepeatButton
  1317. Style="{StaticResource SliderIncreaseButtonStyle}"/>
  1318. </Track.IncreaseRepeatButton>
  1319. <Track.Thumb>
  1320. <Thumb Style="{StaticResource SliderThumbStyle}" Width="20" Margin ="-10,0"/>
  1321. </Track.Thumb>
  1322. </Track>
  1323. </Grid>
  1324. </Border>
  1325. </Border>
  1326. </ControlTemplate>
  1327. <ControlTemplate x:Key="AmbinetSliderTemplate" TargetType="{x:Type Slider}">
  1328. <Border BorderThickness="1" CornerRadius="3" UseLayoutRounding="True" >
  1329. <Border>
  1330. <Grid>
  1331. <Track x:Name="PART_Track">
  1332. <Track.DecreaseRepeatButton>
  1333. <RepeatButton x:Name="DecBtn"
  1334. Style="{StaticResource AmbientSliderDecreaseButtonStyle}"/>
  1335. </Track.DecreaseRepeatButton>
  1336. <Track.IncreaseRepeatButton>
  1337. <RepeatButton
  1338. Style="{StaticResource AmbientSliderIncreaseButtonStyle}"/>
  1339. </Track.IncreaseRepeatButton>
  1340. <Track.Thumb>
  1341. <Thumb Style="{StaticResource SliderThumbStyle}" Width="20" Margin ="-10,0"/>
  1342. </Track.Thumb>
  1343. </Track>
  1344. </Grid>
  1345. </Border>
  1346. </Border>
  1347. </ControlTemplate>
  1348. <Style x:Key="SliderStyle" TargetType="{x:Type Slider}">
  1349. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1350. <Setter Property="IsMoveToPointEnabled" Value="True"/>
  1351. <Setter Property="MinHeight" Value="0"/>
  1352. <Setter Property="Minimum" Value="2000"/>
  1353. <Setter Property="Maximum" Value="6000"/>
  1354. <Setter Property="SmallChange" Value="1"/>
  1355. <Setter Property="LargeChange" Value="10"/>
  1356. <Setter Property="Template" Value="{StaticResource SliderTemplate}"/>
  1357. </Style>
  1358. <Style x:Key="AmbientSliderStyle" TargetType="{x:Type Slider}">
  1359. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1360. <Setter Property="IsMoveToPointEnabled" Value="True"/>
  1361. <Setter Property="MinHeight" Value="0"/>
  1362. <Setter Property="Minimum" Value="2000"/>
  1363. <Setter Property="Maximum" Value="6000"/>
  1364. <Setter Property="SmallChange" Value="1"/>
  1365. <Setter Property="LargeChange" Value="10"/>
  1366. <Setter Property="Template" Value="{StaticResource AmbinetSliderTemplate}"/>
  1367. </Style>
  1368. <ControlTemplate x:Key="ComboBoxButtonTemplate" TargetType="{x:Type ToggleButton}">
  1369. <Grid Background="Transparent"/>
  1370. </ControlTemplate>
  1371. <Style x:Key="ComboBoxButtonStyle" TargetType="{x:Type ToggleButton}">
  1372. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1373. <Setter Property="ClickMode" Value="Press"/>
  1374. <Setter Property="Focusable" Value="False"/>
  1375. <Setter Property="IsTabStop" Value="False"/>
  1376. <Setter Property="Template" Value="{StaticResource ComboBoxButtonTemplate}"/>
  1377. </Style>
  1378. <ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}">
  1379. <Grid UseLayoutRounding="True">
  1380. <VisualStateManager.VisualStateGroups>
  1381. <VisualStateGroup x:Name="CommonStates">
  1382. <VisualStateGroup.Transitions>
  1383. <VisualTransition GeneratedDuration="0:0:0.2" To="MouseOver"/>
  1384. <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.2"/>
  1385. </VisualStateGroup.Transitions>
  1386. <VisualState x:Name="Normal"/>
  1387. <VisualState x:Name="Disabled"/>
  1388. </VisualStateGroup>
  1389. </VisualStateManager.VisualStateGroups>
  1390. <Border>
  1391. <Grid>
  1392. <Border x:Name="Bd" >
  1393. <Border.Background>
  1394. <SolidColorBrush Color="Black" Opacity="0"/>
  1395. </Border.Background>
  1396. </Border>
  1397. <ContentPresenter x:Name="ContentSite"
  1398. HorizontalAlignment="Center" VerticalAlignment="Center" Margin="{TemplateBinding Padding}"
  1399. ContentSource="SelectionBoxItem"/>
  1400. <ToggleButton x:Name="DropDownButton"
  1401. IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
  1402. Style="{StaticResource ComboBoxButtonStyle}"/>
  1403. </Grid>
  1404. </Border>
  1405. <Popup x:Name="PART_Popup"
  1406. Focusable="False"
  1407. IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
  1408. Placement="Bottom"
  1409. PopupAnimation="Slide" VerticalOffset="-2" AllowsTransparency="True">
  1410. <Grid x:Name="DropDown" MinWidth="{TemplateBinding ActualWidth}" MaxHeight="500">
  1411. <Border x:Name="DropDownBorder" Margin="1,0,1,2">
  1412. <Border.Background>
  1413. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  1414. <GradientStop Color="#1B1B1B" Offset="0"/>
  1415. <GradientStop Color="#1B1B1B" Offset="1"/>
  1416. </LinearGradientBrush>
  1417. </Border.Background>
  1418. <StackPanel
  1419. IsItemsHost="True"
  1420. KeyboardNavigation.DirectionalNavigation="Contained"
  1421. UseLayoutRounding="{TemplateBinding UseLayoutRounding}" Margin="3"/>
  1422. </Border>
  1423. </Grid>
  1424. </Popup>
  1425. </Grid>
  1426. </ControlTemplate>
  1427. <Style TargetType="{x:Type ComboBox}">
  1428. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1429. <Setter Property="FontSize" Value="11"/>
  1430. <Setter Property="Padding" Value="0,2,0,3"/>
  1431. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusStyle}"/>
  1432. <Setter Property="Template" Value="{StaticResource ComboBoxTemplate}"/>
  1433. </Style>
  1434. <ControlTemplate x:Key="ComboBoxItemTemplate" TargetType="{x:Type ComboBoxItem}">
  1435. <Border x:Name="Bd" BorderThickness="1" CornerRadius="2">
  1436. <Border.BorderBrush>
  1437. <SolidColorBrush Color="Black" Opacity="0"/>
  1438. </Border.BorderBrush>
  1439. <Border.Background>
  1440. <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0">
  1441. <GradientStop Color="Black" Offset="0"/>
  1442. <GradientStop Color="Black" Offset="1"/>
  1443. </LinearGradientBrush>
  1444. </Border.Background>
  1445. <VisualStateManager.VisualStateGroups>
  1446. <VisualStateGroup x:Name="CommonStates">
  1447. <VisualStateGroup.Transitions>
  1448. <VisualTransition GeneratedDuration="0:0:0.2" To="MouseOver"/>
  1449. <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.2"/>
  1450. </VisualStateGroup.Transitions>
  1451. <VisualState x:Name="Normal"/>
  1452. <VisualState x:Name="MouseOver">
  1453. <Storyboard>
  1454. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="Bd">
  1455. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  1456. </DoubleAnimationUsingKeyFrames>
  1457. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="Bd">
  1458. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  1459. </DoubleAnimationUsingKeyFrames>
  1460. </Storyboard>
  1461. </VisualState>
  1462. <VisualState x:Name="Disabled"/>
  1463. </VisualStateGroup>
  1464. </VisualStateManager.VisualStateGroups>
  1465. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3,2"/>
  1466. </Border>
  1467. </ControlTemplate>
  1468. <Style TargetType="{x:Type ComboBoxItem}">
  1469. <Setter Property="OverridesDefaultStyle" Value="True"/>
  1470. <Setter Property="Foreground" Value="White"/>
  1471. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusStyle}"/>
  1472. <Setter Property="Template" Value="{StaticResource ComboBoxItemTemplate}"/>
  1473. </Style>
  1474. <!-- ============== BUTTON ============== -->
  1475. <!-- Button Template -->
  1476. <ControlTemplate x:Key="ButtonTemplate" TargetType="{x:Type Button}">
  1477. <Grid>
  1478. <VisualStateManager.VisualStateGroups>
  1479. <VisualStateGroup x:Name="CommonStates">
  1480. <VisualStateGroup.Transitions>
  1481. <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
  1482. <VisualTransition From="Disabled" GeneratedDuration="0:0:0.1"/>
  1483. <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
  1484. <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
  1485. <VisualTransition GeneratedDuration="0" To="Pressed"/>
  1486. <VisualTransition From="Pressed" GeneratedDuration="0:0:0.2"/>
  1487. </VisualStateGroup.Transitions>
  1488. <VisualState x:Name="Normal"/>
  1489. <VisualState x:Name="Disabled">
  1490. <Storyboard>
  1491. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
  1492. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  1493. </DoubleAnimationUsingKeyFrames>
  1494. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="ContentHost">
  1495. <EasingColorKeyFrame KeyTime="0" Value="{StaticResource DisabledFgColor}"/>
  1496. </ColorAnimationUsingKeyFrames>
  1497. </Storyboard>
  1498. </VisualState>
  1499. </VisualStateGroup>
  1500. <VisualStateGroup x:Name="FocusStates">
  1501. <VisualStateGroup.Transitions>
  1502. <VisualTransition GeneratedDuration="0:0:0.1" To="Focused"/>
  1503. <VisualTransition From="Focused" GeneratedDuration="0:0:0.3"/>
  1504. </VisualStateGroup.Transitions>
  1505. <VisualState x:Name="Unfocused"/>
  1506. <VisualState x:Name="Focused">
  1507. <Storyboard>
  1508. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusBorder">
  1509. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  1510. </DoubleAnimationUsingKeyFrames>
  1511. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
  1512. <EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
  1513. </DoubleAnimationUsingKeyFrames>
  1514. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
  1515. <EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
  1516. </DoubleAnimationUsingKeyFrames>
  1517. </Storyboard>
  1518. </VisualState>
  1519. </VisualStateGroup>
  1520. </VisualStateManager.VisualStateGroups>
  1521. <Border x:Name="BaseBorder"
  1522. Background="{TemplateBinding Background}"
  1523. BorderBrush="{TemplateBinding BorderBrush}"
  1524. BorderThickness="{TemplateBinding BorderThickness}"
  1525. CornerRadius="24"/>
  1526. <Border x:Name="OverBorder"
  1527. BorderThickness="{TemplateBinding BorderThickness}"
  1528. CornerRadius="24">
  1529. <Border.Background>
  1530. <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
  1531. </Border.Background>
  1532. </Border>
  1533. <Border x:Name="DisabledBorder"
  1534. CornerRadius="4">
  1535. <Border.Background>
  1536. <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
  1537. </Border.Background>
  1538. </Border>
  1539. <Border
  1540. BorderThickness="{TemplateBinding BorderThickness}"
  1541. Padding="{TemplateBinding Padding}">
  1542. <ContentPresenter x:Name="ContentHost"
  1543. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  1544. VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
  1545. <TextElement.Foreground>
  1546. <SolidColorBrush Color="{StaticResource NormalFgColor}"/>
  1547. </TextElement.Foreground>
  1548. </ContentPresenter>
  1549. </Border>
  1550. </Grid>
  1551. </ControlTemplate>
  1552. <!-- Button Style -->
  1553. <Style TargetType="{x:Type Button}" BasedOn="{StaticResource NoesisControlStyle}">
  1554. <Setter Property="Padding" Value="6,4"/>
  1555. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  1556. <Setter Property="VerticalContentAlignment" Value="Center"/>
  1557. <Setter Property="Template" Value="{StaticResource ButtonTemplate}"/>
  1558. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  1559. </Style>
  1560. <!-- Button Template -->
  1561. <ControlTemplate x:Key="ColorButtonTemplate" TargetType="{x:Type Button}">
  1562. <Grid>
  1563. <VisualStateManager.VisualStateGroups>
  1564. <VisualStateGroup x:Name="CommonStates">
  1565. <VisualStateGroup.Transitions>
  1566. <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
  1567. <VisualTransition From="Disabled" GeneratedDuration="0:0:0.0"/>
  1568. <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
  1569. <VisualTransition GeneratedDuration="0" To="Pressed"/>
  1570. <VisualTransition From="Pressed" GeneratedDuration="0:0:0.0"/>
  1571. </VisualStateGroup.Transitions>
  1572. <VisualState x:Name="Normal"/>
  1573. <VisualState x:Name="Disabled">
  1574. <Storyboard>
  1575. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
  1576. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  1577. </DoubleAnimationUsingKeyFrames>
  1578. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="ContentHost">
  1579. <EasingColorKeyFrame KeyTime="0" Value="{StaticResource DisabledFgColor}"/>
  1580. </ColorAnimationUsingKeyFrames>
  1581. </Storyboard>
  1582. </VisualState>
  1583. </VisualStateGroup>
  1584. <VisualStateGroup x:Name="FocusStates">
  1585. <VisualStateGroup.Transitions>
  1586. <VisualTransition GeneratedDuration="0:0:0.1" To="Focused"/>
  1587. <VisualTransition From="Focused" GeneratedDuration="0:0:0.3"/>
  1588. </VisualStateGroup.Transitions>
  1589. <VisualState x:Name="Unfocused"/>
  1590. </VisualStateGroup>
  1591. </VisualStateManager.VisualStateGroups>
  1592. <Border x:Name="BaseBorder"
  1593. Background="{TemplateBinding Background}"
  1594. BorderBrush="{TemplateBinding BorderBrush}"
  1595. BorderThickness="{TemplateBinding BorderThickness}"
  1596. CornerRadius="4"/>
  1597. <Border x:Name="OverBorder"
  1598. BorderThickness="{TemplateBinding BorderThickness}"
  1599. CornerRadius="4">
  1600. <Border.Background>
  1601. <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
  1602. </Border.Background>
  1603. </Border>
  1604. <Border x:Name="DisabledBorder"
  1605. CornerRadius="4">
  1606. <Border.Background>
  1607. <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
  1608. </Border.Background>
  1609. </Border>
  1610. <Border
  1611. BorderThickness="{TemplateBinding BorderThickness}"
  1612. Padding="{TemplateBinding Padding}">
  1613. <ContentPresenter x:Name="ContentHost"
  1614. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  1615. VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
  1616. <TextElement.Foreground>
  1617. <SolidColorBrush Color="{StaticResource NormalFgColor}"/>
  1618. </TextElement.Foreground>
  1619. </ContentPresenter>
  1620. </Border>
  1621. </Grid>
  1622. </ControlTemplate>
  1623. <!-- Button Style -->
  1624. <Style x:Key="color_btn" TargetType="{x:Type Button}" BasedOn="{StaticResource NoesisControlStyle}">
  1625. <Setter Property="Padding" Value="6,4"/>
  1626. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  1627. <Setter Property="VerticalContentAlignment" Value="Center"/>
  1628. <Setter Property="Template" Value="{StaticResource ColorButtonTemplate}"/>
  1629. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  1630. </Style>
  1631. <!-- Button Template -->
  1632. <ControlTemplate x:Key="StopButtonTemplate" TargetType="{x:Type Button}">
  1633. <Grid>
  1634. <VisualStateManager.VisualStateGroups>
  1635. <VisualStateGroup x:Name="CommonStates">
  1636. <VisualStateGroup.Transitions>
  1637. <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
  1638. <VisualTransition From="Disabled" GeneratedDuration="0:0:0.0"/>
  1639. <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
  1640. <VisualTransition GeneratedDuration="0" To="Pressed"/>
  1641. <VisualTransition From="Pressed" GeneratedDuration="0:0:0.0"/>
  1642. </VisualStateGroup.Transitions>
  1643. <VisualState x:Name="Normal"/>
  1644. <VisualState x:Name="Disabled">
  1645. <Storyboard>
  1646. <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
  1647. <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
  1648. </DoubleAnimationUsingKeyFrames>
  1649. <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="ContentHost">
  1650. <EasingColorKeyFrame KeyTime="0" Value="{StaticResource DisabledFgColor}"/>
  1651. </ColorAnimationUsingKeyFrames>
  1652. </Storyboard>
  1653. </VisualState>
  1654. </VisualStateGroup>
  1655. <VisualStateGroup x:Name="FocusStates">
  1656. <VisualStateGroup.Transitions>
  1657. <VisualTransition GeneratedDuration="0:0:0.1" To="Focused"/>
  1658. <VisualTransition From="Focused" GeneratedDuration="0:0:0.3"/>
  1659. </VisualStateGroup.Transitions>
  1660. <VisualState x:Name="Unfocused"/>
  1661. </VisualStateGroup>
  1662. </VisualStateManager.VisualStateGroups>
  1663. <Border x:Name="BaseBorder"
  1664. Background="{TemplateBinding Background}"
  1665. BorderBrush="{TemplateBinding BorderBrush}"
  1666. BorderThickness="{TemplateBinding BorderThickness}"
  1667. CornerRadius="12"/>
  1668. <Border x:Name="OverBorder"
  1669. BorderThickness="{TemplateBinding BorderThickness}"
  1670. CornerRadius="12">
  1671. <Border.Background>
  1672. <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
  1673. </Border.Background>
  1674. </Border>
  1675. <Border x:Name="DisabledBorder"
  1676. CornerRadius="4">
  1677. <Border.Background>
  1678. <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
  1679. </Border.Background>
  1680. </Border>
  1681. <Border
  1682. BorderThickness="{TemplateBinding BorderThickness}"
  1683. Padding="{TemplateBinding Padding}">
  1684. <ContentPresenter x:Name="ContentHost"
  1685. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  1686. VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
  1687. <TextElement.Foreground>
  1688. <SolidColorBrush Color="{StaticResource NormalFgColor}"/>
  1689. </TextElement.Foreground>
  1690. </ContentPresenter>
  1691. </Border>
  1692. </Grid>
  1693. </ControlTemplate>
  1694. <!-- Button Style -->
  1695. <Style x:Key="lift_stop_btn" TargetType="{x:Type Button}" BasedOn="{StaticResource NoesisControlStyle}">
  1696. <Setter Property="Padding" Value="6,4"/>
  1697. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  1698. <Setter Property="VerticalContentAlignment" Value="Center"/>
  1699. <Setter Property="Template" Value="{StaticResource StopButtonTemplate}"/>
  1700. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  1701. </Style>
  1702. </ResourceDictionary>