MainWindow.xaml 115 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379
  1. <Window
  2. x:Class="ShakerManger.MainWindow"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:data="clr-namespace:ShakerManger.Data"
  7. xmlns:hc="https://handyorg.github.io/handycontrol"
  8. xmlns:local="clr-namespace:ShakerManger"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:system="clr-namespace:System;assembly=mscorlib"
  11. xmlns:view="clr-namespace:ShakerManger.View"
  12. xmlns:vm="clr-namespace:ShakerManger.ViewModel"
  13. Title="MainWindow"
  14. Width="{x:Static SystemParameters.PrimaryScreenWidth}"
  15. Height="{x:Static SystemParameters.PrimaryScreenHeight}"
  16. d:DataContext="{d:DesignInstance {x:Type vm:MainWindowViewModel}}"
  17. Background="{StaticResource MainBrush}"
  18. BorderThickness="0"
  19. DataContext="{Binding Source={StaticResource MainViewModel}, Path=Data}"
  20. FontFamily="{StaticResource FontName}"
  21. Left="0"
  22. ResizeMode="NoResize"
  23. Top="0"
  24. Topmost="True"
  25. WindowStartupLocation="Manual"
  26. WindowState="Normal"
  27. WindowStyle="None"
  28. mc:Ignorable="d">
  29. <Window.Resources>
  30. <Geometry x:Key="MainGeometry">M0,0 L1920,0 L1920,100 L1680,100 L1610,20 L600,20 L530,100 L0,100Z</Geometry>
  31. <vm:BindingProxy x:Key="DeviceControl" Data="{x:Static system:Boolean.FalseString}" />
  32. </Window.Resources>
  33. <hc:Interaction.Triggers>
  34. <hc:EventTrigger EventName="Closing">
  35. <hc:InvokeCommandAction Command="{Binding CloseCommand}" />
  36. </hc:EventTrigger>
  37. </hc:Interaction.Triggers>
  38. <WindowChrome.WindowChrome>
  39. <WindowChrome
  40. CaptionHeight="0"
  41. CornerRadius="0"
  42. GlassFrameThickness="0"
  43. ResizeBorderThickness="0" />
  44. </WindowChrome.WindowChrome>
  45. <Viewbox Stretch="Fill">
  46. <Grid Width="1920" Height="1080">
  47. <Grid.Style>
  48. <Style TargetType="Grid">
  49. <Setter Property="IsEnabled">
  50. <Setter.Value>
  51. <MultiBinding
  52. Converter="{StaticResource MainWindowEnabledConverter}"
  53. ConverterParameter="1"
  54. Mode="OneWay">
  55. <Binding
  56. Mode="OneWay"
  57. Path="Data.IsOpen"
  58. Source="{StaticResource Prompt}" />
  59. <Binding
  60. Converter="{StaticResource Boolean2BooleanReConverter}"
  61. Mode="OneWay"
  62. Path="Data.IsLoggedIn"
  63. Source="{StaticResource Login}" />
  64. <Binding
  65. Mode="OneWay"
  66. Path="Data"
  67. Source="{StaticResource DeviceControl}" />
  68. <Binding
  69. Mode="OneWay"
  70. Path="IsOpen"
  71. Source="{x:Static vm:ProgressViewModel.Default}" />
  72. </MultiBinding>
  73. </Setter.Value>
  74. </Setter>
  75. </Style>
  76. </Grid.Style>
  77. <Grid.RowDefinitions>
  78. <RowDefinition Height="120" />
  79. <RowDefinition Height="*" />
  80. <RowDefinition Height="40" />
  81. </Grid.RowDefinitions>
  82. <Rectangle
  83. Grid.Row="0"
  84. Grid.RowSpan="3"
  85. Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Grid}, Path=ActualWidth}"
  86. Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Grid}, Path=ActualHeight}"
  87. Stroke="#9FFF0000"
  88. StrokeThickness="10"
  89. Visibility="{Binding SystemConfig.GPIOControl.Level, Converter={StaticResource Boolean2VisibilityConverter}}" />
  90. <StackPanel
  91. Grid.Row="2"
  92. HorizontalAlignment="Center"
  93. VerticalAlignment="Center"
  94. Orientation="Horizontal">
  95. <Viewbox HorizontalAlignment="Center" VerticalAlignment="Center">
  96. <Grid>
  97. <Grid.Resources>
  98. <SolidColorBrush x:Key="backcolor" Color="Transparent" />
  99. <SolidColorBrush x:Key="iconcolor" Color="#1B3566" />
  100. <SolidColorBrush x:Key="cirquecolor" Color="#2A4369" />
  101. <SolidColorBrush x:Key="st3" Color="#6A0811" />
  102. <SolidColorBrush x:Key="textcolor" Color="#090605" />
  103. </Grid.Resources>
  104. <Path Data="M84.28,80.81c0.76-0.16,8.36,1.6,8.96,1.89c1.98,0.95,6.33,1.71,8.68,2.31c2.64,0.68,6.24,1.68,8.81,2.15 c2.83,0.52,6.23,1.94,8.98,1.94h0.31c0.61,0,5.15,1.49,6.32,1.78c2.28,0.55,4.43,1.21,6.65,1.75c2.29,0.56,4.63,0.91,6.9,1.45 c2.27,0.54,4.35,1.56,6.81,1.56c0.03,5.61-4.95,13.64-6.39,18.6l-0.94,0.74c-0.62,2.15-4.11,6.72-5.55,8.49 c-0.97,1.2-1.85,2.9-3.15,3.78c-1.41,0.95-0.73,0.46-1.59,1.87c-0.9,1.47-1.14,0.75-1.93,1.45c-1.21,1.06-1.21,2.18-3.44,3.42 c-0.83,0.46-3.4,2.08-4.07,2.64c-2.56,2.13-6.49,3.64-8.07,5.37c-3.76,0.54-9.5,4.49-13.26,4.7c-0.39,0.02-6.51,1.51-7,1.7 c-0.62,0.23-7.14,0.61-8.19,0.61h-8.06c-9.23,0-18.59-3.38-27.03-6.85c-3.7-1.52-19.35-11.23-20.59-14.83l-0.98-0.33l-0.25-0.83 l-0.89-0.43l-6.55-8.01c-0.71-2.14-2.08-3.27-3.36-5.44c-1.2-2.04-1.89-4.27-3-6.28l0-1.18l0.43-0.92l2.03-1.4 c1.58-0.1,8.63-5.05,9.72-6.44l1.08-0.16c1.57-1.94,2.35-1.91,3.55-3.29c0.99-1.15,2.14-2.67,3.25-3.65 c1.53-1.36,5.24-6.35,5.43-8.66l0.83-0.11c0.27-1.61-0.36-0.9,0.98-1.09v2.69c0,5.04,1.31,7.64,1.62,11.44l0.48,0.55 c0.26,3.13,0.81,2.75,1.6,4.94c0.23,0.63,1.64,4.84,1.65,4.87c1.57,1.49,0.84,2.04,2.27,3.04l0.3,1.09l2.53,3.77l0.8,0.53 c0.72,1.56,1.03,1.37,1.85,2.7c0.73,0.19,3.18,2.59,3.37,3.13c1.7,0.26,5.02,4.31,8.28,4.73c1.45,1.72,4.49,1.67,6.25,2.88 l4.68,0.49l4.96-0.01l1.58,0.04l1.19-0.69l3.99-0.57l0.45-0.6c2.01-0.31,7.62-2.83,8.99-4.66l1.08-0.1l0.47-1 c1.35-0.34,5.93-4.72,6.83-6.16l2.01-3.25c1.34-0.94,3.32-5.94,4.81-8.13l1.79-5.97c-1.21-0.13-7.45-3.1-8.89-3.96 c-1.29-0.77-7.98-4-9.17-4.03l-0.56-0.75l-7.36-3.24l-0.46-0.62l-1.05-0.22L84.28,80.81L84.28,80.81z M67.69,45.04 c-2.03,2.3-4.41,2.13-6.36,5.18c-1.52,0.43-6.27,6.61-6.43,8.93c1.6-0.54,2.25-2.3,4.65-2.3h1.55c4.42,0,6,5.52,8.29,7.78 c0.43,2.3,2.48,7.39,3.29,10.13c0.41,1.38,1.75,10.91,1.75,12.42l0.06,6.54l-0.37,3.06v0.38c0,1.59-1.3,6.45-1.95,7.95 c-0.79,1.83-3.15,3.95-5.18,3.95h-0.31c-2.46,0-3.39-1.72-5.27-1.92c1.74,3.26,9.66,6.91,13.03,6.91h8.06 c1.47,0,3.95-0.58,5.04-1.82c2.22-0.33,5.17-1.95,6.43-4.32c-1.54,0.17-2.69,1.15-4.34,1.15h-1.24c-2.37,0-1.5-1.18-3.36-1.6 c-1.51-5.14-3.15-5.44-3.15-12.6l-0.06-6.16l0.37-3.06v-2.3c0-1.79,2.53-12.19,3.24-13.65c0.83-1.71,1.45-4.36,2.33-5.94 c1-1.79,2.94-3.28,3.52-4.79l3-1.73h0.62h2.17c1.87,0,3.38,1.7,4.96,2.69c-0.3-1.57-3.45-6.38-4.35-7.28 c-0.91-0.91-2.36-2.7-2.79-3.07c-1.09-0.95-2.3-1.53-3.22-2.46l-2.12-1.29c-2.92-0.52-4.39-2.79-8.6-2.79h-4.96 C73.32,43.02,70.21,44.67,67.69,45.04L67.69,45.04z M37.44,56.36c0.7-5.85,10.93-18.29,15.28-21.4c1.93-1.38,2.52-2.75,5.06-4.1 c1.33-0.7,4.55-2.79,5.52-3.14c4.01-1.44,9.44-3.13,13.6-3.13h3.1c2.38,0,7.35,0.87,9.51,1.67c1.79,0.66,6.91,3.23,8.11,3.4 c0.73,1,1.87,1.86,2.8,2.29c2.09,0.96,1.37,0.93,2.89,2.18c2.11,1.74,3.1,2.49,5.14,4.77c1.7,1.9,3.2,3.58,4.81,5.56 c1.15,1.42,3.24,5.62,4.08,6.09c0.75,2.83,3.36,6.34,3.66,9.67l1.99,5.36c-1.5,2.54-5.13,6.23-5.51,8.86l-0.88,0.44l0-2.29 l-0.35-4.26l-2.55-10.23l-0.63-1.56l-0.76-0.48l-0.44-2.58c-1.03-1.34-2.24-2.84-2.42-4.67c-0.39-0.21-2.81-3.29-3.31-4.36 l-2.7-3.19c-1.08-0.36-2.28-1.63-2.89-2.95l-4.55-3.14l-1.04-0.26l-4.91-2.53l-0.5-0.41c-2.82-0.35-5.04-2-8.31-2H76.6l-4.06,0.47 l-1.19,0.72c-1.76-0.08-5.77,1.2-6.92,2.57c-2.09,0.26-4.43,1.57-5.58,3.46l-1.1,0.13c-0.77,0.96-2.58,2.36-3.49,3.4 c-1.03,1.19-1.76,2.2-3.29,3.6c-1.04,0.95-5,8.03-5.1,9.05c-1.43,0.76-1.51,3.96-2.7,5.49l-0.1,1.75l-1.06,2.3 c1.73,1.82,9.58,3.37,10.45,5.4l3.26,1.01c2.19,2.39,15.03,6.72,15.91,8.27c-2.03-0.05-5.21-1.17-7.44-1.54 c-1.76-0.29-5.25-1.92-6.82-1.92h-0.31c-1.04,0-9.81-2.17-11.22-2.62c-1.7-0.54-9.49-2.76-10.8-2.76h-1.55 c0.3-4.21,2.33-6.92,2.54-9.91l0.5-0.53l0.1-1.37L37.44,56.36L37.44,56.36z M62.65,18.06c1.93,0,3.17-1.06,5.91-1.14 c2.03-0.06,3.94-0.78,6.19-0.78h7.44c4.44,0,20.84,4.28,23.62,8.01c2.1,0.24,5.18,4.03,7.3,4.79l0.42,0.98 c3.03,0.76,13.09,13.32,13.7,16.86c0.88,0.78,3.27,5.84,3.41,7.3l0.81,0.92l0.37,2.5l-3.59,2.64c-0.52,1.22-2.44,2.52-3.54,2.85 c-1.35-7.11-7.18-17.58-11.24-22.56c-1.68-2.06-6.14-7.31-7.94-8.21c-2.07-1.04-2.1-1.97-4.81-3.26c-0.24-0.11-4.52-3.08-4.58-3.16 l-6.37-2.25l-0.67-0.55l-8.09-1.3l-4.36,0.21c-7.17,0-21.41,5.54-26.11,11.83l-1.14,0.13c-0.36,0.7-4.46,5.42-5.24,6.17 c-1.58,1.52-4.22,6.09-4.93,6.57l-1.9,3.46c-2.78,2.05-4.64,14.42-6.32,17.48L22.65,66c-0.02-5.06,3.39-10.93,3.78-14.83l1.4-2.57 l0.63-0.69l0.12-1.35c2.5-2.92,4.73-7.34,7.32-10.54c2.35-2.92,6.58-6.07,8.5-8.68l1.16-0.09c1.92-2.62,13.35-8.42,16.17-8.4 L62.65,18.06L62.65,18.06z M57.68,9.23c2.4,0,5.24-1.17,7.76-1.52c2.47-0.34,5.6-0.78,8.06-0.78h8.37c3.29,0,7.7,0.73,10.87,1.51 c1.91,0.47,8.77,2.71,9.91,2.71l0.59,0.8c1.53,0.02,5.57,1.96,6.84,3.05c2.94,0.07,7.5,4.86,10.79,5.84 c0.85,1.34,3.58,3.14,4.89,4.31c1.64,1.47,2.84,2.97,4.42,4.51c0.79,0.77,3.82,3.86,4.3,4.66c0.68,1.14,2.98,4.8,3.71,5.39l0.3,1.15 l4.93,8.56l-9.14,5.87l-0.77-1.65l-0.2-1.35c-1.07-1.22-3.64-7.53-4.72-9.52c-0.69-1.27-5.2-7.25-5.98-7.96 c-2.19-1.98-4.02-5.18-6.81-6.93c-0.61-0.38-7-5.68-7.24-6.02c-0.37-0.02-6-2.8-6.48-3.11c-1.78-1.15-4.85-2.21-6.83-2.68 c-5.46-1.31-9.61-3-15.56-3h-4.96L61.4,15.36l-0.7,0.68l-2.95,0.58c-1.01,1.2-2.4,1.37-3.72,1.52l-7.65,4.59l-1.06,0.37 c-0.21,0.41-8.35,7.54-9.25,8.13l-0.25,1.19c-2.71,1.5-4.3,5.96-6.27,7.25l-0.24,1.21l-0.7,0.29l-1.98,4.01l-0.32,1.19l-3.18,6.38 c-0.24,1.41-1.49,6.27-2.31,7.2l-0.69,4.93l-1.21,0.01c-1.05,0-8.92-2.11-9.92-2.69c0.1-4.72,4.65-16.96,7.37-20.45l0.15-1.34 c1.8-2.3,3.17-4.69,5.12-7.11c1.72-2.13,3.71-4.79,5.53-6.59c2.05-2.04,11.25-9.52,13.38-9.93l0.76-0.98l3.29-0.99l0.48-0.86 l9.42-3.4l0.68-0.63l1.58,0.07L57.68,9.23L57.68,9.23z M2.48,84.49c0,2.25,2.62,14.63,3.53,16.75c1.21,2.83,1.54,4.12,3.03,7 c0.74,1.44,2.58,5.04,3.19,6.41c2.92,6.57,12.03,16.89,17.17,20.97c6.08,4.82,16.44,11.6,23.43,13.23 c4.98,1.17,8.68,3.11,14.21,3.53c5.26,0.39,10.71,1.45,16.01,0.75c5.67-0.75,9.31-0.7,15.07-2.46c4.59-1.41,8.66-2.79,13.1-4.9 c8.19-3.89,14.63-9.01,21.43-15.7c5.54-5.46,12.17-15.53,15.2-23.42c3.73-9.71,6.93-24.34,5.17-34.98 c-1.22-7.35-1.2-9.55-3.54-16.74c-1.36-4.17-3.59-10.38-5.92-13.79c-2.77-4.04-4.6-7.59-7.93-11.31c-3.34-3.74-5.93-6.12-9.36-9.53 C114.71,8.83,87.16,0.57,72.67,2.83c-5,0.78-10.17,1.58-15.18,2.33c-3.84,0.57-9.15,3.49-13.02,5 c-6.59,2.57-15.99,10.25-21.42,15.72c-6.1,6.14-11.57,14.82-15.2,23.42C2.7,61.48,2.48,71.06,2.48,84.49z" Fill="{StaticResource backcolor}" />
  105. <Path Data="M70.97,145.15l-1.19,0.01v-3.07l1.61,0.01L70.97,145.15L70.97,145.15z M89.01,140.17l-0.51,3.73l-1.97,0.11 c0.04-2.4,0.68-5.34,0.93-7.68c0.24-2.25,0.32-5.58,1.86-6.54l1.16,0.12c0.38,0.46,2.69,4.83,3.08,5.79 c0.84,2.06,3.01,3.84,3.19,5.96l-2.39,0.34l-1.4-2.15l-0.85-0.05C91.18,139.71,90.4,140.17,89.01,140.17L89.01,140.17z M74.43,136.71c0-2.81,1.62-5.14,3.41-5.76h0.62h1.24c2.23,0,3.72,1.46,3.72,4.22l-2.1,0.45l-0.98-2.35l-1.26-0.03 c-0.74-0.02-1.21,0.21-1.86,0.4l-0.67,2.28l0.05,0.8v1.15c0,1.42,0.31,2.64,1.01,3.74l1.16,0.12c0.92,0.03,1.29-0.28,2.12-0.47 l0.88-1.58l1.4,0.72l-0.72,2.78l-1.79,0.9l-0.65-0.07h-1.55h-0.62c-2.33-0.79-3.41-3.15-3.41-6.14V136.71L74.43,136.71z M62.34,133.64l4.9,1.02l-0.17,2.41l-5.27-1.03c-0.79,1.24-0.89,1.55-0.5,3.11l5.33,1.47c0.01,1.4,0.03,1.43-0.88,1.85h-0.62 c-1.41,0-4.55-1.32-6.68-1.59l2.65-12.62h0.93c2.1,0,4.62,1.49,6.51,1.54l-0.01,2.39l-6.19-1.24V133.64L62.34,133.64z M95.83,127.88 v1.92c1.17,1.39,2.65,7.37,3.72,9.98c1.52-0.04,6.29-2.65,7.41-3.81l-0.28-1.57c-1.77,0.19-4.47,2.65-6.03,2.06l-0.51-2.03 c0.94-2.22,2.37-1.34,4.47-3.5l-0.76-1.72l-3.97,2.54l-0.98-0.1l-0.65-2.35l2.31-1.7l2.31-0.59l0.42-1.03 c-0.44-1.05-0.11-1.18-1.27-1.18C100.52,124.81,97.9,127.26,95.83,127.88L95.83,127.88z M52.4,123.99l0.63,0.04h0.62 c1.76,0,3.88,1.76,4.34,3.84v0.77v1.54l-2.09-0.92l-0.09-1.39c-0.3-1-0.61-1.22-1.54-1.54h-0.62h-0.93 c0.06,3.84,3.72,2.95,3.72,8.06c0,2.2-1.13,3.07-2.79,3.07h-0.31h-0.62l-1.04-0.6c-1.89-0.41-2.78-1.29-3.3-3.62v-0.77v-1.54 l2.13,0.35l0.05,1.95c0.42,1.4,1.53,1.76,2.81,1.95l0.97-1.1l-0.05-0.88l-3.36-3.5c-0.23-1.3-0.38-1.13-0.38-2.61 c0-2.01,0.46-0.5,0.64-2.61L52.4,123.99L52.4,123.99z M104.82,123.27c0.59-1.13,4.25-3.87,5.27-4.22h0.62h0.31h0.62 c1.09,0.88,2.17,2.52,2.17,4.22v0.38l-0.03,1.44l-3.3,3.26c-0.04,1.92,1.38,2.39,1.81,4.16l-1.53,1.3 c-1.68-1.32-3.27-6.71-4.95-7.54L104.82,123.27L104.82,123.27z M42.46,130.6l2.01,0.95l1.07-1.85l0.13-1.34 c1.06-1.43,3.23-5.83,3.71-7.89l-1.64-1.08C46.53,122.03,43.05,128.18,42.46,130.6L42.46,130.6z M86.02,82.03l1.05,0.22l0.46,0.62 l7.36,3.24l0.56,0.75c1.18,0.03,7.88,3.26,9.17,4.03c1.44,0.86,7.68,3.83,8.89,3.96l-1.79,5.97c-1.49,2.2-3.47,7.2-4.81,8.13 l-2.01,3.25c-0.91,1.43-5.48,5.82-6.83,6.16l-0.47,1l-1.08,0.1c-1.37,1.83-6.98,4.35-8.99,4.66l-0.45,0.6l-3.99,0.57l-1.19,0.69 l-1.58-0.04l-4.96,0.01l-4.68-0.49c-1.76-1.21-4.8-1.17-6.25-2.88c-3.26-0.41-6.57-4.46-8.28-4.73c-0.19-0.54-2.64-2.94-3.37-3.13 c-0.83-1.34-1.13-1.14-1.85-2.7l-0.8-0.53l-2.53-3.77l-0.3-1.09c-1.43-0.99-0.7-1.55-2.27-3.04c0-0.03-1.42-4.24-1.65-4.87 c-0.79-2.18-1.34-1.8-1.6-4.94l-0.48-0.55C41,89.45,39.7,86.85,39.7,81.8v-2.69c-1.35,0.19-0.72-0.52-0.98,1.09l-0.83,0.11 c-0.19,2.31-3.9,7.3-5.43,8.66c-1.11,0.98-2.26,2.51-3.25,3.65c-1.19,1.38-1.97,1.35-3.55,3.29l-1.08,0.16 c-1.09,1.39-8.14,6.34-9.72,6.44l-2.03,1.4l-0.43,0.92l0,1.18c1.11,2.01,1.8,4.24,3,6.28c1.28,2.17,2.65,3.3,3.36,5.44l6.55,8.01 l0.89,0.43l0.25,0.83l0.98,0.33c1.24,3.6,16.89,13.31,20.59,14.83c8.45,3.47,17.8,6.85,27.03,6.85h8.06c1.05,0,7.58-0.38,8.19-0.61 c0.49-0.18,6.62-1.67,7-1.7c3.75-0.21,9.5-4.16,13.26-4.7c1.58-1.73,5.51-3.25,8.07-5.37c0.67-0.56,3.24-2.18,4.07-2.64 c2.24-1.23,2.24-2.36,3.44-3.42c0.8-0.7,1.04,0.03,1.93-1.45c0.86-1.41,0.18-0.92,1.59-1.87c1.3-0.88,2.18-2.58,3.15-3.78 c1.43-1.77,4.93-6.34,5.55-8.49l0.94-0.74c1.43-4.96,6.41-12.99,6.39-18.6c-2.45,0.01-4.54-1.02-6.81-1.56 c-2.26-0.53-4.6-0.89-6.9-1.45c-2.22-0.54-4.37-1.2-6.65-1.75c-1.17-0.28-5.71-1.78-6.32-1.78h-0.31c-2.75,0-6.15-1.42-8.98-1.94 c-2.57-0.47-6.17-1.47-8.81-2.15c-2.34-0.6-6.69-1.36-8.68-2.31c-0.6-0.29-8.2-2.05-8.96-1.89L86.02,82.03z" Fill="{StaticResource iconcolor}" />
  106. <Path Data="M57.68,9.23l-0.93,0.79l-1.58-0.07l-0.68,0.63l-9.42,3.4l-0.48,0.86l-3.29,0.99l-0.76,0.98 c-2.14,0.41-11.33,7.89-13.38,9.93c-1.82,1.8-3.81,4.46-5.53,6.59c-1.96,2.42-3.32,4.81-5.12,7.11l-0.15,1.34 c-2.71,3.48-7.27,15.73-7.37,20.45c1,0.58,8.87,2.69,9.92,2.69l1.21-0.01l0.69-4.93c0.82-0.93,2.07-5.79,2.31-7.2l3.18-6.38 l0.32-1.19l1.98-4.01l0.7-0.29l0.24-1.21c1.96-1.29,3.56-5.75,6.27-7.25l0.25-1.19c0.9-0.59,9.04-7.72,9.25-8.13l1.06-0.37 l7.65-4.59c1.32-0.15,2.71-0.32,3.72-1.52l2.95-0.58l0.7-0.68l13.34-2.29h4.96c5.96,0,10.11,1.69,15.56,3 c1.98,0.47,5.05,1.53,6.83,2.68c0.48,0.31,6.1,3.09,6.48,3.11c0.24,0.34,6.63,5.64,7.24,6.02c2.79,1.75,4.63,4.95,6.81,6.93 c0.78,0.71,5.28,6.69,5.98,7.96c1.08,1.99,3.65,8.3,4.72,9.52l0.2,1.35l0.77,1.65l9.14-5.87l-4.93-8.56l-0.3-1.15 c-0.73-0.6-3.03-4.26-3.71-5.39c-0.48-0.8-3.5-3.89-4.3-4.66c-1.58-1.53-2.79-3.04-4.42-4.51c-1.31-1.17-4.04-2.98-4.89-4.31 c-3.29-0.98-7.85-5.78-10.79-5.84c-1.27-1.09-5.31-3.03-6.84-3.05l-0.59-0.8c-1.13,0-8-2.24-9.91-2.71 c-3.18-0.78-7.59-1.51-10.87-1.51H73.5c-2.46,0-5.58,0.43-8.06,0.78C62.92,8.06,60.08,9.23,57.68,9.23z" Fill="{StaticResource iconcolor}" />
  107. <Path Data="M2.48,84.49c0-13.43,0.22-23.01,5.37-35.2c3.63-8.59,9.1-17.28,15.2-23.42c5.43-5.47,14.82-13.15,21.42-15.72 c3.88-1.51,9.18-4.42,13.02-5C62.5,4.4,67.67,3.61,72.67,2.83c14.49-2.26,42.05,6,53.6,17.49c3.43,3.41,6.02,5.79,9.36,9.53 c3.32,3.72,5.16,7.27,7.93,11.31c2.33,3.4,4.56,9.62,5.92,13.79c2.34,7.19,2.32,9.39,3.54,16.74c1.76,10.64-1.44,25.27-5.17,34.98 c-3.03,7.9-9.66,17.97-15.2,23.42c-6.8,6.7-13.24,11.81-21.43,15.7c-4.44,2.11-8.51,3.49-13.1,4.9c-5.76,1.77-9.4,1.72-15.07,2.46 c-5.3,0.7-10.75-0.36-16.01-0.75c-5.53-0.41-9.23-2.36-14.21-3.53c-6.99-1.64-17.35-8.41-23.43-13.23 c-5.15-4.08-14.25-14.4-17.17-20.97c-0.61-1.37-2.45-4.98-3.19-6.41c-1.49-2.88-1.82-4.18-3.03-7C5.1,99.12,2.48,86.74,2.48,84.49 L2.48,84.49z M0,77.2c0,51.2,42.12,78.71,79.08,78.71c12.27,0,31.52-4.71,42.05-12.83c6.34-4.89,9.72-7.26,15.41-13.55 c3.4-3.75,10.17-12.88,11.93-17.87c3.41-9.73,5.62-12.79,6.82-24.2c0.99-9.41,1.06-19.59-1.86-28.58 c-1.58-4.85-1.58-6.36-3.91-11.28c-1.82-3.84-3.25-6.5-5.14-10.15c-2.05-3.98-10.02-13.71-13.21-16.29 C118.6,10.99,109.49,5.12,94.34,1.86C78.23-1.6,63.27-0.21,47.78,5.81C38.15,9.56,21.57,21.03,15.33,30.9 C10.81,38.02,7.8,41.71,4.68,50.35C0.97,60.61,0,65.83,0,77.2z" Fill="{StaticResource cirquecolor}" />
  108. <Path Data="M67.69,45.04c-2.03,2.3-4.41,2.13-6.36,5.18c-1.52,0.43-6.27,6.61-6.43,8.93c1.6-0.54,2.25-2.3,4.65-2.3h1.55 c4.42,0,6,5.52,8.29,7.78c0.43,2.3,2.48,7.39,3.29,10.13c0.41,1.38,1.75,10.91,1.75,12.42l0.06,6.54l-0.37,3.06v0.38 c0,1.59-1.3,6.45-1.95,7.95c-0.79,1.83-3.15,3.95-5.18,3.95h-0.31c-2.46,0-3.39-1.72-5.27-1.92c1.74,3.26,9.66,6.91,13.03,6.91h8.06 c1.47,0,3.95-0.58,5.04-1.82c2.22-0.33,5.17-1.95,6.43-4.32c-1.54,0.17-2.69,1.15-4.34,1.15h-1.24c-2.37,0-1.5-1.18-3.36-1.6 c-1.51-5.14-3.15-5.44-3.15-12.6l-0.06-6.16l0.37-3.06v-2.3c0-1.79,2.53-12.19,3.24-13.65c0.83-1.71,1.45-4.36,2.33-5.94 c1-1.79,2.94-3.28,3.52-4.79l3-1.73h0.62h2.17c1.87,0,3.38,1.7,4.96,2.69c-0.3-1.57-3.45-6.38-4.35-7.28 c-0.91-0.91-2.36-2.7-2.79-3.07c-1.09-0.95-2.3-1.53-3.22-2.46l-2.12-1.29c-2.92-0.52-4.39-2.79-8.6-2.79h-4.96 C73.32,43.02,70.21,44.67,67.69,45.04z" Fill="{StaticResource st3}" />
  109. <Path Data="M62.65,18.06l-0.92,0.78c-2.82-0.02-14.25,5.77-16.17,8.4l-1.16,0.09c-1.92,2.61-6.14,5.76-8.5,8.68 c-2.58,3.2-4.81,7.62-7.32,10.54l-0.12,1.35l-0.63,0.69l-1.4,2.57c-0.38,3.9-3.8,9.77-3.78,14.83l8.31,1.54 c1.68-3.06,3.54-15.43,6.32-17.48l1.9-3.46c0.71-0.47,3.35-5.04,4.93-6.57c0.79-0.76,4.89-5.47,5.24-6.17l1.14-0.13 c4.7-6.29,18.94-11.83,26.11-11.83l4.36-0.21l8.09,1.3l0.67,0.55l6.37,2.25c0.06,0.08,4.34,3.05,4.58,3.16 c2.71,1.29,2.74,2.22,4.81,3.26c1.8,0.9,6.26,6.15,7.94,8.21c4.06,4.98,9.89,15.44,11.24,22.56c1.1-0.33,3.02-1.64,3.54-2.85 l3.59-2.64l-0.37-2.5l-0.81-0.92c-0.14-1.46-2.53-6.51-3.41-7.3c-0.6-3.54-10.67-16.1-13.7-16.86l-0.42-0.98 c-2.12-0.76-5.2-4.55-7.3-4.79c-2.78-3.72-19.18-8.01-23.62-8.01h-7.44c-2.26,0-4.16,0.72-6.19,0.78 C65.81,17.01,64.57,18.07,62.65,18.06z" Fill="{StaticResource iconcolor}" />
  110. <Path Data="M37.44,56.36l-0.8,0.58l-0.1,1.37l-0.5,0.53c-0.21,2.99-2.24,5.7-2.54,9.91h1.55c1.31,0,9.1,2.22,10.8,2.76 c1.41,0.45,10.18,2.62,11.22,2.62h0.31c1.57,0,5.07,1.63,6.82,1.92c2.23,0.37,5.41,1.48,7.44,1.54c-0.89-1.54-13.72-5.88-15.91-8.27 l-3.26-1.01c-0.87-2.03-8.72-3.58-10.45-5.4l1.06-2.3l0.1-1.75c1.18-1.53,1.27-4.73,2.7-5.49c0.1-1.02,4.06-8.1,5.1-9.05 c1.54-1.4,2.26-2.41,3.29-3.6c0.91-1.04,2.72-2.44,3.49-3.4l1.1-0.13c1.16-1.89,3.49-3.19,5.58-3.46c1.15-1.37,5.17-2.65,6.92-2.57 l1.19-0.72l4.06-0.47h4.65c3.26,0,5.48,1.65,8.31,2l0.5,0.41l4.91,2.53l1.04,0.26l4.55,3.14c0.61,1.32,1.81,2.59,2.89,2.95l2.7,3.19 c0.49,1.06,2.92,4.15,3.31,4.36c0.18,1.82,1.39,3.33,2.42,4.67l0.44,2.58l0.76,0.48l0.63,1.56l2.55,10.23l0.35,4.26l0,2.29 l0.88-0.44c0.39-2.63,4.02-6.32,5.51-8.86l-1.99-5.36c-0.31-3.33-2.92-6.85-3.66-9.67c-0.83-0.46-2.92-4.67-4.08-6.09 c-1.61-1.99-3.11-3.67-4.81-5.56c-2.04-2.28-3.03-3.03-5.14-4.77c-1.52-1.25-0.8-1.22-2.89-2.18c-0.93-0.43-2.07-1.29-2.8-2.29 c-1.2-0.16-6.33-2.73-8.11-3.4c-2.16-0.8-7.13-1.67-9.51-1.67h-3.1c-4.16,0-9.59,1.69-13.6,3.13c-0.97,0.35-4.2,2.44-5.52,3.14 c-2.54,1.34-3.13,2.72-5.06,4.1C48.37,38.07,38.15,50.51,37.44,56.36z" Fill="{StaticResource iconcolor}" />
  111. <Path Data="M195.94,25.7h5.04l1.18,0.03c0.68,0.85,0.71,1.01,0.71,2.17v19.52h-6.93V25.7L195.94,25.7z M223.02,26.02h16.06 v3.15h-9.45v6.3h7.87c1.14,0,0.65-0.11,1.57,0.31v2.52h-9.45v5.98h7.56h0.63l1.41,1.46l-0.15,0.74v1.26h-16.06V26.02L223.02,26.02z M204.76,25.7h14.17c0.9,0,1.11,0.13,1.89,0.31c0.19,0.78,0.32,0.99,0.32,1.89v1.26h-9.45v4.72h7.24l1.18,0.03l0.65,0.66l0.08,1.2 l-0.01,11.65h-16.06v-3.15h9.45v-5.04h-9.45V25.7L204.76,25.7z M191.53,29.8v14.17c0,4.05,0.73,2.53,1.77,4.85 c2.57,0.84,0.95,1.45,4.53,1.45h39.37c2.73,0,1.94,0.02,3.88-1.16c2.06-1.25,1.26-1.6,2.4-2.68l0.33-3.41V29.8 c0-4.64-1.8-3.55-2.91-5.97l-3.41-0.33h-39.66C193.43,23.5,191.53,25.27,191.53,29.8z" Fill="{StaticResource st3}" />
  112. <Path Data="M499.84,59.07h7.87v15.74h-7.87V59.07L499.84,59.07z M485.98,59.07h5.35v15.74l-3.78-0.04l-1.45,0.24 l-0.12,1.38v2.52h5.35v36.52h8.5V78.91h8.19v36.52h8.19V78.91l4.1,0.04l1.45-0.24l0.12-1.38v-2.2h-5.67V58.76h5.67l0.04-2.21 l-0.24-1.45l-1.38-0.12h-34.33V59.07L485.98,59.07z M630.85,115.42h8.5V78.91h10.08v36.52h8.5V78.91h2.2v-4.09h-20.47V59.07h20.47 v-4.09h-29.29V115.42L630.85,115.42z M608.79,59.01l18.91,0.06v-4.09h-28.97v48.17h8.5V78.91h13.86c1.22,0,1.09,0.22,2.2,0.31 c0.19,0.78,0.31,0.99,0.31,1.89v24.56h-24.88v10.07h8.5v-6.3h20.47V77.33c0-1.9-0.61-2.52-2.52-2.52h-17.95V60.65l0.21-1.41 L608.79,59.01L608.79,59.01z M202.24,58.44h-8.5V80.8h8.5V63.48h30.86v19.83h-39.37v5.04h47.55V61.28c0-1.12-0.21-2.04-1.02-2.8 l-1.18-0.03h-6.3V55.3c-1.12-0.1-0.99-0.31-2.2-0.31h-5.98v3.46h-13.86l0.01-1.57l-0.09-1.18l-0.64-0.67l-1.18-0.03h-6.61V58.44 L202.24,58.44z M323.48,111.65v3.78h62.35v-3.78h-27.4l-0.04-47.86l0.24-1.45l1.38-0.12h22.36v-3.46l-51.96,0.06l-3.15-0.06v3.15 h21.73l0.7,0.09l1.19-0.72c-0.19,0.78-0.32,0.99-0.32,1.89v48.48H323.48L323.48,111.65z M530.07,88.04h16.06v3.78 c0,3.3-2.66,13.86-5.93,15.16c-0.5,2.76-7.31,6.52-9.5,8.45h10.39l1.18-0.03c2.04-2.08,4.39-3.56,6.14-5.87 c0.77-1.02,1.79-2.57,2.44-3.54c0.75-1.12,0.49-2.42,1.81-3.85c0.35-2.97,1.66-6.49,1.66-9.68v-0.63l0.37-2.51l-0.06-1.27h21.1 v27.39h13.86v-4.09h-5.04V83.94h-29.92V80.8h-8.5v1.57c0,1.14,0.11,0.65-0.32,1.57h-15.75V88.04L530.07,88.04z M461.42,59.07h2.2 v44.07h8.5V78.91h5.04c0.9,0,1.11,0.13,1.89,0.31c0.19,0.78,0.31,0.99,0.31,1.89v24.56h-15.75v10.07h8.5v-6.3h11.34v-31.8 c0-0.97-0.18-1.7-0.71-2.49l-1.18-0.03h-9.45V58.76h11.34l0.04-2.21l-0.24-1.45l-1.38-0.12h-20.47V59.07L461.42,59.07z M393.39,59.07h7.87v13.54l-6.3-0.04l-1.45,0.24l-0.12,1.38l-0.04,0.63l0.24,1.45l1.38,0.12h6.3v39.04h8.5V76.39h7.56v-3.78h-7.56 V59.07h7.87l0.04-2.52l-0.24-1.45l-1.38-0.12h-22.67V59.07L393.39,59.07z M453.23,115.42v-4.09h-12.6V99.68h12.6v-4.09h-12.6v-10.7 h12.6v-3.78h-33.38v3.78h12.28v10.7h-12.28v4.09h12.28v11.96h-12.28v3.78H453.23L453.23,115.42z M271.85,56.56l-0.01-1.58h-7.24 c-0.17,8.19-3.88,16.01-10,20.86l-0.09,1.18l0.01,8.82c2.58-0.63,4.75-4.76,6.3-5.35v34.94h8.5v-48.8V66l0.64-0.93l0.81-2.31 L271.85,56.56L271.85,56.56z M290.41,58.44h-16.06v3.78h16.06v40.29h8.5V62.54h17.01v-4.09h-17.01l0.01-1.57l-0.09-1.18l-0.64-0.67 l-1.18-0.03h-6.61V58.44L290.41,58.44z M419.85,69.78h8.19v-10.7h16.69v13.54h-24.88v3.78h33.38v-19.2l0.15-0.74l-1.41-1.46h-0.63 h-31.49V69.78L419.85,69.78z M555.27,58.44h-24.88v13.54h8.19v-9.44h42.51v9.76h8.5V58.44h-26.14v-1.26c0-1.19,0.02-1.2-0.71-2.17 l-1.18-0.03h-6.3V58.44L555.27,58.44z M192.44,115.4l51.68,0.02c-0.1-1.14-0.06-1.17-1.21-1.63c-0.34-1.83-2.78-4.61-3.46-7.24 c-0.48-1.83-1.31-8.07-1.63-8.76h-5.98v13.22h-26.77l-1.38-0.12l-0.24-1.45l0.04-17.63h-3.78v2.52l-0.37,2.51l0.06,0.95 c0,1.47-1.93,8.93-2.75,9.84l-0.11,1.13L192.44,115.4L192.44,115.4z M307.42,102.52v-8.5V65.68h5.98h0.63 c1.48,0.4,1.89,0.93,1.89,2.52v47.22h-8.5v-8.18h4.72v-2.83l-0.03-1.18l-0.66-0.65L307.42,102.52L307.42,102.52z M282.54,67.89 v34.63h-4.41v4.72h4.41v8.18h-8.19V65.68c2.35,0,7.48-1,8.19,1.57V67.89L282.54,67.89z M536.6,74.73c0.34-0.31,4.77-2.09,5.71-2.48 c1.8-0.74,3.44-2.69,4.77-3.11h0.63h8.82c-1.5,2.98-8.04,8.12-11.26,8.58l-0.47,0.48c-2.15,0.24-4.79,1.65-6.86,1.65H537l-2.51,0.37 l-3.47-0.06v-4.41L536.6,74.73L536.6,74.73z M393.39,115.42V80.8h4.09v34.63H393.39L393.39,115.42z M582.98,79.85 c-2.32,0-9.66-2.1-11.64-3.48c-1.69-1.17-7.67-4.81-7.89-7.23h8.82l1.18,0.03c2.94,2.95,3.57,2.74,7.11,4.27 c2.98,1.28,6.26,1.64,8.4,2.63v3.78H582.98L582.98,79.85z M198.14,96.85l-0.31,3.78v0.31c0,1.91-1.14,3.19-1.23,5.06 c-1.31,1.11-3.09,7.27-6.35,9.44c-1.32-0.99-3.49-1.28-4.41-2.57c1.73-2.27,3.81-4.25,4.87-7.09c0.65-1.76,2.09-8.35,2.09-10.19 v-3.78h5.67v2.83C198.46,95.81,198.25,95.79,198.14,96.85L198.14,96.85z M413.55,115.42V81.11h3.78v34.31H413.55L413.55,115.42z M464.74,127.04l0.14,5.7h3.46v-10.7h-4.41l-1.55,6.3c-1.16-1.29-0.65-4.52-1.99-6.22l-1.18-0.09l-3.15,0.01v10.39h3.46v-3.46 c1.57,1.12,0.35,1.73,1.66,3.38c0.32,0.04,0.78,0.15,1.18,0.08l1.11-0.19L464.74,127.04L464.74,127.04z M278.76,106.61h32.44v-3.15 h-32.44V106.61L278.76,106.61z M323.48,111.65l0.6-0.38l0.66,0.07h25.51v-48.8h-23.62v-4.09h56.06v4.09h-22.36l-1.38,0.12 l-0.24,1.45l0.04,47.23h25.82h0.63l0.63,0.32h-27.4l-0.04-47.86l0.24-1.45l1.38-0.12h22.36v-3.46l-51.96,0.06l-3.15-0.06v3.15h21.73 l0.7,0.09l1.19-0.72c-0.19,0.78-0.32,0.99-0.32,1.89v48.48H323.48L323.48,111.65z M522.51,132.74c0-1.7-0.38-4.55,0.34-5.69 l0.47,1.09l3.27,4.27l1.27,0.03l1.58-0.01v-10.39h-3.15v4.09c-0.92-0.47-2.6-3.11-2.83-4.09h-4.41v10.7H522.51L522.51,132.74z M638.09,127.07c1.75,1.16,2.38,3.51,4.18,5.27l1.18,0.09l1.58-0.01v-10.39h-3.15v4.41l-2.97-4.32l-4.28-0.09v10.7h3.46V127.07 L638.09,127.07z M565.97,127.07c0.97,0.69,3.34,4.3,3.52,5.3l1.21,0.06l2.2-0.01v-10.39h-3.15v4.09l-1.06-0.52l-1.94-3.48l-4.25-0.1 v10.39h3.46V127.07L565.97,127.07z M200.35,126.44l4.15,5.92l1.2,0.08l1.89-0.01v-10.39h-3.15v4.41c-0.96-0.35-2.53-3.14-2.83-4.41 h-4.41v10.7h3.15V126.44L200.35,126.44z M216.72,124.87h5.98v-2.83h-6.93c-1.9,0-2.52,0.61-2.52,2.52v1.26 c0,1.9,0.61,2.52,2.52,2.52h4.09v1.26h-6.61v3.15h6.61c1.71,0,1.65-0.58,3.15-0.94c0.19-0.78,0.32-0.99,0.32-1.89v-0.94 c0-2-0.7-3.15-2.83-3.15h-3.78V124.87L216.72,124.87z M381.11,124.87h5.98v-2.83h-6.93c-1.9,0-2.52,0.61-2.52,2.52v1.26v0.63 l0.97,1.84l1.24,0.06l4.41-0.01v1.26h-6.61v2.83h7.24c1.22,0,1.09-0.22,2.2-0.32c0.32-1.3,0.63-0.98,0.63-2.52v-0.63 c0-1.41-0.24-1.41-0.84-2.63c-0.94-0.35-1.24-0.52-2.31-0.52h-3.46V124.87L381.11,124.87z M596.52,124.87h5.67v-2.83h-9.13v10.7 h9.13v-3.15h-5.67v-1.26h5.67v-2.2h-0.31h-5.04h-0.31V124.87L596.52,124.87z M305.85,124.87h5.67v-2.83h-9.13v10.7h9.13v-3.15h-5.67 v-1.26h5.67v-2.2h-0.31h-5.04h-0.31V124.87L305.85,124.87z M477.48,124.87h5.98v-2.83h-6.93h-0.63c-1.48,0.4-1.89,0.93-1.89,2.52 v1.57l0.03,1.18l0.99,0.94l1.18,0.1l4.41-0.01v1.26h-6.61v2.83h7.56c0.9,0,1.11-0.13,1.89-0.32c0.19-0.78,0.32-0.99,0.32-1.89v-1.57 c0-1.22-0.22-1.09-0.32-2.2c-1.3-0.32-0.98-0.63-2.52-0.63h-3.46V124.87L477.48,124.87z M508.03,124.87h5.67v-2.83h-9.13v10.7h9.13 v-3.15h-5.67v-1.26h5.35v-2.2h-0.31h-4.72h-0.31V124.87L508.03,124.87z M581.72,124.87h5.98v-2.83h-9.13v10.7h9.13v-3.15h-5.67 v-1.26h5.35v-2.2h-0.31h-5.04h-0.32V124.87L581.72,124.87z M335.45,124.87h3.78v4.72h-3.78V124.87L335.45,124.87z M332.3,129.91 c0,0.81,0.41,1.41,0.68,2.15c1.15,0.12,1.29,0.37,2.46,0.37h4.72l1.18-0.03c0.69-0.86,1.02-1.6,1.02-2.8v-5.04v-0.63l-0.77-1.5 c-0.64-0.27-0.85-0.39-1.75-0.39h-4.41c-1.35,0-2.23,0.37-3.07,1.34L332.3,129.91L332.3,129.91z M239.4,100.31V97.8h4.72v1.57 c0,2.41,0.72,5.99,1.54,8.22c0.97,2.64,3.12,4.87,3.5,6.26l-3.38,1.76c-2.32-2.7-6.07-8.73-6.07-12.46v-0.31L239.4,100.31 L239.4,100.31z M611.01,124.87h3.46v1.26h-3.46V124.87L611.01,124.87z M617.56,126.38l0.08-1.2l-0.01-0.63v-0.63 c-0.29-1.06-0.83-1.6-1.89-1.89h-0.63h-5.67l-1.38,0.12l-0.24,1.45l0.04,8.82h3.15v-2.2c0-1.14-0.11-0.65,0.31-1.57h3.15v3.78h1.57 l1.38-0.12l0.24-1.45l-0.04-1.26v-0.63l-0.9-1.79L617.56,126.38L617.56,126.38z M413.86,124.87h5.98v-2.83h-6.93l-1.18,0.03 l-1.13,1.79l0.11,0.7v1.26l0.03,1.18l1.4,1.47l0.77-0.13h4.41v1.26h-6.61v2.83h7.24c1.23,0,1.64-0.12,2.44-1.03l0.09-1.18 l-0.01-1.57c0-1.54-0.31-1.21-0.63-2.52c-1.12-0.1-0.99-0.31-2.2-0.31h-3.78V124.87L413.86,124.87z M653.84,124.87h6.93v-2.83h-6.61 c-1.12,0-2.1,0.38-3.15,0.63c-0.19,0.78-0.31,0.99-0.31,1.89v5.35l0.03,1.18c1.12,0.99,1.15,1.34,2.8,1.34h4.41 c2,0,3.15-0.7,3.15-2.83v-3.46h-0.32h-3.15v3.46h-3.78V124.87L653.84,124.87z M538.26,124.87h6.93v-2.83h-7.56H537l-2.03,1.74 l0.15,0.77v5.04v0.63c0.31,1.15,1.03,1.88,1.89,2.2h0.63h4.41c0.97,0,1.52-0.26,2.44-0.4c0.91-0.9,1.03-1.1,1.03-2.44v-3.46h-0.32 h-3.15v3.46h-3.78V124.87L538.26,124.87z M444.68,124.88l5.72-0.01v-2.83h-8.82v10.39h9.13v-2.83h-5.67v-1.26h5.35v-2.2h-4.09 l-1.44-0.19L444.68,124.88L444.68,124.88z M222.39,100.63l-0.03,0.58l-1.23,0.06l-7.87-0.01v-9.44h7.87v3.78v0.63l0.31,0.63 L222.39,100.63L222.39,100.63z M278.76,103.46v3.15h32.44v-3.15H278.76L278.76,103.46z M290.41,107.55l-0.05-0.61l-1.21-0.02h-6.3 v8.81h-8.82v-48.8l-0.07-0.66l0.38-0.6v49.74h8.19v-8.18h-4.41v-4.72h4.41V67.89l0.32,0.63v0.63v32.43v0.63 c-0.47,1.1,0.49,0.09-0.92,0.91l1.23,0.04h24.25v-0.63l4.03,0.06l0.66,0.65l0.03,1.18v2.83h-4.72l-0.63-0.31h-0.63h-7.56 c0.43,0.92,0.32,0.43,0.32,1.57v7.24h-7.24l-0.66,0.07l-0.6-0.38h8.19v-7.87H290.41L290.41,107.55z M271.2,129.91 c0,0.91,0.7,1.87,1.34,2.44l1.18,0.09l5.04-0.01c1.27,0,1.03,0.01,1.97-0.55c0.4-0.91,0.55-1.21,0.55-2.29v-7.56h-1.57l-1.38,0.12 l-0.24,1.45l0.04,6.3h-3.78v-6.3l-0.12-1.38l-1.45-0.24l-1.58,0.04V129.91L271.2,129.91z M290.41,115.42h8.19v-7.87h-8.19V115.42 L290.41,115.42z M351.19,124.87h5.67v-2.83h-8.82v10.39h3.15v-4.09h5.67v-2.2h-0.32h-5.04h-0.31V124.87L351.19,124.87z M400.64,128.96c0.52-1.38,3.55-4.55,4.09-6.93h-4.09l-0.41,1.8l-1.04,2.03l-2.12-3.78l-3.67-0.06c0.2,2.18,3.78,4.89,3.78,7.56 v2.83h3.46v-2.83V128.96L400.64,128.96z M426.15,124.87h3.15v7.87h3.46v-7.87h3.46v-2.83h-10.08V124.87L426.15,124.87z M232.15,124.55v8.19h3.46v-7.87h3.15v-2.83H229v2.52H232.15L232.15,124.55z M290.41,124.55v7.87h3.46v-7.56h3.15v-2.83h-9.76v2.52 H290.41L290.41,124.55z M262.39,124.55h3.15v-2.52h-8.19c-1.14,0-0.65-0.11-1.57,0.31v2.52h3.46v7.56h1.58l1.38-0.12l0.2-1.46 V124.55L262.39,124.55z M552.43,132.74h3.46v-11.02h-3.46V132.74L552.43,132.74z M624.55,131.17c0,0.96-0.04,0.54,0.4,1.18 l1.18,0.09l1.89-0.01v-10.39h-3.46V131.17L624.55,131.17z M187.12,132.42h3.15v-10.39h-3.15V132.42L187.12,132.42z M245.7,132.42 h3.15v-8.81l-0.12-1.38l-1.45-0.24l-1.58,0.04V132.42L245.7,132.42z M222.39,100.63l0.37,0.93l-9.82,0.01V91.5h8.5v5.35l-0.31-0.63 v-0.63v-3.78h-7.87v9.44l7.87,0.01l1.23-0.06L222.39,100.63z" Fill="{StaticResource textcolor}" />
  113. <Path Data="M107.58,123.18 108.01,125.08 109.23,126.44 111.61,124.33 111.69,122.81 110.35,121.49Z" Fill="{StaticResource iconcolor}" />
  114. <Path Data="M89.24,137.85l1.32,0.01c1.13,0,0.64,0.14,1.55-0.38c-0.39-1.76-0.22-0.4-1.06-1.76 c-1.22-1.97,0.39-1.45-1.4-1.69L89.24,137.85z" Fill="{StaticResource iconcolor}" />
  115. </Grid>
  116. </Viewbox>
  117. </StackPanel>
  118. <Grid>
  119. <Viewbox Margin="10" Stretch="Fill">
  120. <Path
  121. Data="{StaticResource MainGeometry}"
  122. Stroke="#1F6cd7ea"
  123. StrokeThickness="1">
  124. <Path.Effect>
  125. <DropShadowEffect
  126. BlurRadius="20"
  127. Opacity="1"
  128. ShadowDepth="0"
  129. Color="{StaticResource LightEmbellishColor}" />
  130. </Path.Effect>
  131. </Path>
  132. </Viewbox>
  133. <Viewbox Margin="10" Stretch="Fill">
  134. <hc:AnimationPath
  135. Data="{StaticResource MainGeometry}"
  136. Stroke="{StaticResource EmbellishBrush}"
  137. StrokeThickness="2"
  138. Duration="0:0:5" />
  139. </Viewbox>
  140. <TextBlock
  141. Margin="20,0,0,0"
  142. HorizontalAlignment="Left"
  143. VerticalAlignment="Center"
  144. FontSize="52"
  145. FontWeight="Bold"
  146. Foreground="{StaticResource EmbellishBrush}"
  147. Text="{Binding SystemConfig.SystemPage.MangerTitle}" />
  148. <ListView
  149. Height="60"
  150. Margin="560,40,320,0"
  151. IsEnabled="{Binding IsEnabled}"
  152. ItemsSource="{Binding MainPages}"
  153. SelectedValue="{Binding CurrentMainPage}">
  154. <ListView.Style>
  155. <Style TargetType="ListView" BasedOn="{x:Null}">
  156. <Setter Property="Background" Value="Transparent" />
  157. <Setter Property="BorderBrush" Value="Transparent" />
  158. <Setter Property="VerticalContentAlignment" Value="Stretch" />
  159. <Setter Property="Padding" Value="0" />
  160. <Setter Property="Template">
  161. <Setter.Value>
  162. <ControlTemplate TargetType="ListView">
  163. <ItemsPresenter Margin="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  164. </ControlTemplate>
  165. </Setter.Value>
  166. </Setter>
  167. <Setter Property="ItemTemplate">
  168. <Setter.Value>
  169. <DataTemplate>
  170. <StackPanel
  171. HorizontalAlignment="Center"
  172. VerticalAlignment="Center"
  173. Background="Transparent"
  174. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
  175. Orientation="Horizontal">
  176. <Grid>
  177. <Viewbox Width="200" Stretch="Fill">
  178. <Path Data="M70,0 L270,0 L200,70 L00,70Z">
  179. <Path.Style>
  180. <Style TargetType="Path">
  181. <Style.Triggers>
  182. <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListViewItem}, Path=IsSelected}" Value="True">
  183. <Setter Property="Fill">
  184. <Setter.Value>
  185. <LinearGradientBrush StartPoint="0.45,0" EndPoint="0.55,1">
  186. <GradientStop Offset="0" Color="{StaticResource EmbellishColor}" />
  187. <GradientStop Offset="1" Color="#1A7eff" />
  188. </LinearGradientBrush>
  189. </Setter.Value>
  190. </Setter>
  191. </DataTrigger>
  192. <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListViewItem}, Path=IsSelected}" Value="False">
  193. <Setter Property="Fill">
  194. <Setter.Value>
  195. <RadialGradientBrush Center="0.5,0.5">
  196. <GradientStop Color="{StaticResource AuxiliaryColor}" />
  197. <GradientStop Offset="1" Color="{StaticResource EmbellishColor}" />
  198. </RadialGradientBrush>
  199. </Setter.Value>
  200. </Setter>
  201. </DataTrigger>
  202. </Style.Triggers>
  203. </Style>
  204. </Path.Style>
  205. <Path.Effect>
  206. <DropShadowEffect
  207. BlurRadius="20"
  208. Opacity="1"
  209. RenderingBias="Quality"
  210. ShadowDepth="0"
  211. Color="{StaticResource ButtonEffectColor}" />
  212. </Path.Effect>
  213. </Path>
  214. </Viewbox>
  215. <TextBlock
  216. HorizontalAlignment="Center"
  217. VerticalAlignment="Center"
  218. FontSize="22"
  219. Text="{Binding MainPageType, Converter={StaticResource EnumToDescription}}">
  220. <TextBlock.Style>
  221. <Style TargetType="TextBlock">
  222. <Style.Triggers>
  223. <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListViewItem}, Path=IsSelected}" Value="True">
  224. <Setter Property="Foreground" Value="{StaticResource MainBrush}" />
  225. </DataTrigger>
  226. <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListViewItem}, Path=IsSelected}" Value="False">
  227. <Setter Property="Foreground" Value="{StaticResource LableBrush}" />
  228. </DataTrigger>
  229. </Style.Triggers>
  230. </Style>
  231. </TextBlock.Style>
  232. </TextBlock>
  233. </Grid>
  234. </StackPanel>
  235. </DataTemplate>
  236. </Setter.Value>
  237. </Setter>
  238. <Setter Property="ItemContainerStyle">
  239. <Setter.Value>
  240. <Style TargetType="ListViewItem">
  241. <Setter Property="Background" Value="Transparent" />
  242. <Setter Property="BorderBrush" Value="Transparent" />
  243. <Setter Property="BorderThickness" Value="0" />
  244. <Setter Property="SnapsToDevicePixels" Value="True" />
  245. <Setter Property="OverridesDefaultStyle" Value="True" />
  246. <Setter Property="Cursor" Value="Hand" />
  247. <Setter Property="IsEnabled" Value="{Binding IsEnabled}" />
  248. <Setter Property="Padding" Value="0" />
  249. <Setter Property="Template">
  250. <Setter.Value>
  251. <ControlTemplate TargetType="ListViewItem">
  252. <ContentPresenter
  253. Margin="0,0,0,0"
  254. Content="{TemplateBinding Content}"
  255. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  256. ContentTemplate="{TemplateBinding ContentTemplate}"
  257. ContentTemplateSelector="{x:Null}"
  258. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}" />
  259. </ControlTemplate>
  260. </Setter.Value>
  261. </Setter>
  262. </Style>
  263. </Setter.Value>
  264. </Setter>
  265. <Setter Property="ItemsPanel">
  266. <Setter.Value>
  267. <ItemsPanelTemplate>
  268. <UniformGrid
  269. Margin="0"
  270. Rows="1"
  271. Style="{x:Null}" />
  272. </ItemsPanelTemplate>
  273. </Setter.Value>
  274. </Setter>
  275. </Style>
  276. </ListView.Style>
  277. </ListView>
  278. <TextBlock
  279. Margin="0,20,20,0"
  280. HorizontalAlignment="Right"
  281. VerticalAlignment="Top"
  282. FontSize="24"
  283. Foreground="{StaticResource EmbellishBrush}"
  284. Text="{Binding NowTime, StringFormat=yyyy-MM-dd HH:mm:ss}" />
  285. <StackPanel
  286. Margin="0,0,20,20"
  287. HorizontalAlignment="Right"
  288. VerticalAlignment="Bottom"
  289. Background="Transparent"
  290. Orientation="Horizontal">
  291. <Button
  292. Width="42"
  293. Height="42"
  294. VerticalAlignment="Center"
  295. hc:IconElement.Geometry="{StaticResource DeviceControlGeometry}"
  296. Cursor="Hand"
  297. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
  298. Style="{StaticResource ImageButton}"
  299. ToolTip="设备控制">
  300. <hc:Interaction.Triggers>
  301. <hc:EventTrigger EventName="Click">
  302. <hc:SetPropertyAction
  303. PropertyName="Data"
  304. PropertyValue="{x:Static system:Boolean.TrueString}"
  305. TargetObject="{Binding Source={StaticResource DeviceControl}}" />
  306. </hc:EventTrigger>
  307. </hc:Interaction.Triggers>
  308. </Button>
  309. <Grid Margin="20,0,0,0">
  310. <Button
  311. Width="42"
  312. Height="42"
  313. hc:IconElement.Geometry="m63.94311,0l668.44444,0c32.99556,0 60.13156,24.91733 63.71556,56.94578l0.34133,6.99733l0,668.55822c0,32.99556 -24.91733,60.07467 -56.94578,63.54489l-6.99733,0.39822l-668.55822,0c-32.99556,0 -60.07467,-24.91733 -63.54489,-56.94578l-0.39822,-6.99733l0,-668.55822c0,-32.99556 24.91733,-60.07467 56.94578,-63.54489l6.99733,-0.39822l668.44444,0l-668.44444,0zm107.06489,56.88889l-114.11911,0l0,682.66666l682.66666,0l0,-682.66666l-114.11911,0l0.22756,3.47022l0.11378,3.584l0,213.44711c0,32.99556 -21.33334,60.07467 -48.81067,63.54489l-5.97333,0.39822l-345.54312,0c-28.27377,0 -51.48444,-24.91733 -54.44266,-56.94578l-0.34134,-6.99733l0,-213.44711c0,-2.38933 0.11378,-4.72178 0.34134,-7.05422zm397.88089,0l-341.33334,0l0,227.55555l341.33334,0l0,-227.55555zm-85.33334,56.88889a28.44444,28.44444 0 0 1 28.44445,28.44444l0,56.88889a28.44444,28.44444 0 1 1 -56.88889,0l0,-56.88889a28.44444,28.44444 0 0 1 28.44444,-28.44444z"
  314. Background="Transparent"
  315. Command="{Binding SaveDataCommand}"
  316. Cursor="Hand">
  317. <Button.Style>
  318. <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
  319. <Style.Triggers>
  320. <MultiDataTrigger>
  321. <MultiDataTrigger.Conditions>
  322. <Condition Binding="{Binding IsEnabled}" Value="True" />
  323. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
  324. </MultiDataTrigger.Conditions>
  325. <Setter Property="IsEnabled" Value="True" />
  326. </MultiDataTrigger>
  327. <MultiDataTrigger>
  328. <MultiDataTrigger.Conditions>
  329. <Condition Binding="{Binding IsEnabled}" Value="False" />
  330. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
  331. </MultiDataTrigger.Conditions>
  332. <Setter Property="IsEnabled" Value="False" />
  333. </MultiDataTrigger>
  334. <MultiDataTrigger>
  335. <MultiDataTrigger.Conditions>
  336. <Condition Binding="{Binding IsEnabled}" Value="False" />
  337. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
  338. </MultiDataTrigger.Conditions>
  339. <Setter Property="IsEnabled" Value="False" />
  340. </MultiDataTrigger>
  341. <MultiDataTrigger>
  342. <MultiDataTrigger.Conditions>
  343. <Condition Binding="{Binding IsEnabled}" Value="True" />
  344. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
  345. </MultiDataTrigger.Conditions>
  346. <Setter Property="IsEnabled" Value="False" />
  347. </MultiDataTrigger>
  348. </Style.Triggers>
  349. </Style>
  350. </Button.Style>
  351. </Button>
  352. <Viewbox
  353. Width="20"
  354. Height="20"
  355. Margin="0,10,0,0"
  356. IsHitTestVisible="False"
  357. Visibility="{Binding IsSaveData, Converter={StaticResource Boolean2VisibilityConverter}}">
  358. <Path
  359. Data="m0,508.958c0,-37.982 30.385,-68.367 68.367,-68.367c45.578,0 75.964,30.385 75.964,68.367c0,45.578 -30.385,75.964 -75.964,75.964c-37.982,0 -68.367,-30.385 -68.367,-75.964zm91.157,-265.873l0,0c0,-53.175 37.982,-98.753 91.157,-98.753s98.753,45.578 98.753,98.753l0,0c0,53.175 -45.578,91.157 -98.753,91.157s-91.157,-37.982 -91.157,-91.157l0,0zm37.982,539.344l0,0c0,-30.385 22.789,-53.175 53.175,-53.175s53.175,22.789 53.175,53.175l0,0c0,30.385 -22.789,53.175 -53.175,53.175s-53.175,-22.789 -53.175,-53.175zm265.874,113.946l0,0c0,-37.982 22.789,-60.772 60.772,-60.772s60.772,22.789 60.772,60.772l0,0c0,37.982 -22.789,60.772 -60.772,60.772c-37.982,0 -60.772,-22.789 -60.772,-60.772zm296.26,-113.946c0,-22.789 15.193,-37.982 37.982,-37.982s37.982,15.193 37.982,37.982c0,22.789 -15.193,37.982 -37.982,37.982c-22.789,0 -37.982,-15.193 -37.982,-37.982zm83.56,-273.471c0,-30.385 30.385,-60.772 68.367,-60.772c30.385,0 60.772,30.385 60.772,60.772c0,37.982 -30.385,68.367 -60.772,68.367c-37.982,0 -68.367,-30.385 -68.367,-68.367zm-174.717,-265.873c0,-75.964 60.772,-129.139 129.139,-129.139s129.139,53.175 129.139,129.139c0,68.367 -60.772,129.139 -129.139,129.139c-68.367,0 -129.139,-60.772 -129.139,-129.139zm-273.47,-113.946c0,-68.367 60.772,-129.139 129.139,-129.139s129.139,60.772 129.139,129.139c0,68.367 -60.772,129.139 -129.139,129.139c-68.367,0 -129.139,-60.772 -129.139,-129.139z"
  360. Fill="Green"
  361. RenderTransformOrigin="0.5,0.5">
  362. <Path.RenderTransform>
  363. <TransformGroup>
  364. <ScaleTransform />
  365. <SkewTransform />
  366. <RotateTransform Angle="0" />
  367. <TranslateTransform />
  368. </TransformGroup>
  369. </Path.RenderTransform>
  370. <Path.Triggers>
  371. <EventTrigger RoutedEvent="Loaded">
  372. <BeginStoryboard>
  373. <Storyboard>
  374. <DoubleAnimation
  375. AutoReverse="False"
  376. RepeatBehavior="Forever"
  377. SpeedRatio="1"
  378. Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"
  379. From="0"
  380. To="360"
  381. Duration="0:0:1" />
  382. </Storyboard>
  383. </BeginStoryboard>
  384. </EventTrigger>
  385. </Path.Triggers>
  386. </Path>
  387. </Viewbox>
  388. </Grid>
  389. <Button
  390. Width="42"
  391. Height="42"
  392. Margin="20,0,0,0"
  393. VerticalAlignment="Center"
  394. hc:IconElement.Geometry="{StaticResource LayoutGeometry}"
  395. hc:TitleElement.Foreground="{StaticResource LightEmbellishBrush}"
  396. Cursor="Hand"
  397. IsEnabled="{Binding LayoutVisibily}">
  398. <Button.Style>
  399. <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
  400. <Style.Triggers>
  401. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ShakerManger}">
  402. <Setter Property="Visibility" Value="Visible" />
  403. </DataTrigger>
  404. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ConfigManger}">
  405. <Setter Property="Visibility" Value="Collapsed" />
  406. </DataTrigger>
  407. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.DataManger}">
  408. <Setter Property="Visibility" Value="Collapsed" />
  409. </DataTrigger>
  410. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.LogManger}">
  411. <Setter Property="Visibility" Value="Collapsed" />
  412. </DataTrigger>
  413. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.WarnManger}">
  414. <Setter Property="Visibility" Value="Collapsed" />
  415. </DataTrigger>
  416. </Style.Triggers>
  417. </Style>
  418. </Button.Style>
  419. <hc:Interaction.Triggers>
  420. <hc:EventTrigger EventName="Click">
  421. <hc:SetPropertyAction
  422. PropertyName="IsOpen"
  423. PropertyValue="{x:Static system:Boolean.TrueString}"
  424. TargetObject="{Binding LayoutManger}" />
  425. </hc:EventTrigger>
  426. </hc:Interaction.Triggers>
  427. </Button>
  428. <Button
  429. Width="42"
  430. Height="42"
  431. Margin="20,0,0,0"
  432. VerticalAlignment="Center"
  433. hc:IconElement.Geometry="{StaticResource CloseGeometry}"
  434. hc:TitleElement.Foreground="{StaticResource LightEmbellishBrush}"
  435. Command="{Binding ExitCommand}"
  436. Cursor="Hand"
  437. Style="{StaticResource ImageButton}"
  438. ToolTip="关闭" />
  439. </StackPanel>
  440. </Grid>
  441. <Border
  442. Grid.ColumnSpan="2"
  443. Background="{StaticResource TitleBackColor}"
  444. Visibility="Collapsed">
  445. <Grid>
  446. <Grid.ColumnDefinitions>
  447. <ColumnDefinition Width="400" />
  448. <ColumnDefinition Width="*" />
  449. <ColumnDefinition Width="200" />
  450. <ColumnDefinition Width="auto" />
  451. </Grid.ColumnDefinitions>
  452. <TextBlock
  453. Margin="20,0,10,0"
  454. VerticalAlignment="Center"
  455. FontSize="36"
  456. FontWeight="Bold"
  457. Text="{Binding SystemConfig.SystemPage.MangerTitle}" />
  458. <ListView
  459. Grid.Column="1"
  460. Margin="20,0,20,0"
  461. IsEnabled="{Binding IsEnabled}"
  462. ItemsSource="{Binding MainPages}"
  463. SelectedValue="{Binding CurrentMainPage}">
  464. <ListView.Style>
  465. <Style TargetType="ListView" BasedOn="{x:Null}">
  466. <Setter Property="Background" Value="Transparent" />
  467. <Setter Property="BorderBrush" Value="Transparent" />
  468. <Setter Property="VerticalContentAlignment" Value="Stretch" />
  469. <Setter Property="Padding" Value="0" />
  470. <Setter Property="Template">
  471. <Setter.Value>
  472. <ControlTemplate TargetType="ListView">
  473. <ItemsPresenter Margin="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  474. </ControlTemplate>
  475. </Setter.Value>
  476. </Setter>
  477. <Setter Property="ItemTemplate">
  478. <Setter.Value>
  479. <DataTemplate>
  480. <StackPanel
  481. Margin="0"
  482. HorizontalAlignment="Center"
  483. VerticalAlignment="Center"
  484. Background="Transparent"
  485. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
  486. Orientation="Horizontal">
  487. <Viewbox
  488. Width="32"
  489. Height="32"
  490. HorizontalAlignment="Right"
  491. VerticalAlignment="Center">
  492. <Path Data="{Binding IconPath}" Fill="{StaticResource SystemItemsForeColor}" />
  493. </Viewbox>
  494. <TextBlock
  495. Grid.Column="1"
  496. Margin="20,0,0,0"
  497. HorizontalAlignment="Left"
  498. VerticalAlignment="Center"
  499. FontSize="22"
  500. Foreground="{StaticResource SystemItemsForeColor}"
  501. Text="{Binding MainPageType, Converter={StaticResource EnumToDescription}}" />
  502. </StackPanel>
  503. </DataTemplate>
  504. </Setter.Value>
  505. </Setter>
  506. <Setter Property="ItemContainerStyle">
  507. <Setter.Value>
  508. <Style TargetType="ListViewItem">
  509. <Setter Property="Background" Value="Transparent" />
  510. <Setter Property="BorderBrush" Value="Transparent" />
  511. <Setter Property="BorderThickness" Value="0" />
  512. <Setter Property="SnapsToDevicePixels" Value="True" />
  513. <Setter Property="OverridesDefaultStyle" Value="True" />
  514. <Setter Property="Cursor" Value="Hand" />
  515. <Setter Property="IsEnabled" Value="{Binding IsEnabled}" />
  516. <Setter Property="Padding" Value="0" />
  517. <Setter Property="Template">
  518. <Setter.Value>
  519. <ControlTemplate TargetType="ListViewItem">
  520. <Border
  521. x:Name="backcolor"
  522. Margin="0"
  523. Padding="0"
  524. CornerRadius="12,12,0,0">
  525. <ContentPresenter
  526. Margin="0"
  527. Content="{TemplateBinding Content}"
  528. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  529. ContentTemplate="{TemplateBinding ContentTemplate}"
  530. ContentTemplateSelector="{x:Null}"
  531. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}" />
  532. </Border>
  533. <ControlTemplate.Triggers>
  534. <Trigger Property="IsSelected" Value="True">
  535. <Setter TargetName="backcolor" Property="Background" Value="{StaticResource SystemItemsSelectBackColor}" />
  536. </Trigger>
  537. </ControlTemplate.Triggers>
  538. </ControlTemplate>
  539. </Setter.Value>
  540. </Setter>
  541. </Style>
  542. </Setter.Value>
  543. </Setter>
  544. <Setter Property="ItemsPanel">
  545. <Setter.Value>
  546. <ItemsPanelTemplate>
  547. <UniformGrid
  548. Margin="0"
  549. Rows="1"
  550. Style="{x:Null}" />
  551. </ItemsPanelTemplate>
  552. </Setter.Value>
  553. </Setter>
  554. </Style>
  555. </ListView.Style>
  556. </ListView>
  557. <UniformGrid Grid.Column="2" Rows="1">
  558. <Button
  559. Width="42"
  560. Height="42"
  561. Padding="0"
  562. hc:IconElement.Geometry="{StaticResource StartGeometry}"
  563. Command="{Binding StartAllCommand}"
  564. IsEnabled="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
  565. Style="{StaticResource ImageButton}"
  566. ToolTip="全部开始" />
  567. <Button
  568. Width="42"
  569. Height="42"
  570. Padding="0"
  571. hc:IconElement.Geometry="{StaticResource StopGeometry}"
  572. Command="{Binding StopAllCommand}"
  573. IsEnabled="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
  574. Style="{StaticResource ImageButton}"
  575. ToolTip="全部停止" />
  576. </UniformGrid>
  577. <StackPanel
  578. Grid.Column="3"
  579. Margin="40,0,10,0"
  580. VerticalAlignment="Center"
  581. Orientation="Horizontal">
  582. <Grid>
  583. <Button
  584. Width="42"
  585. Height="42"
  586. hc:IconElement.Geometry="m63.94311,0l668.44444,0c32.99556,0 60.13156,24.91733 63.71556,56.94578l0.34133,6.99733l0,668.55822c0,32.99556 -24.91733,60.07467 -56.94578,63.54489l-6.99733,0.39822l-668.55822,0c-32.99556,0 -60.07467,-24.91733 -63.54489,-56.94578l-0.39822,-6.99733l0,-668.55822c0,-32.99556 24.91733,-60.07467 56.94578,-63.54489l6.99733,-0.39822l668.44444,0l-668.44444,0zm107.06489,56.88889l-114.11911,0l0,682.66666l682.66666,0l0,-682.66666l-114.11911,0l0.22756,3.47022l0.11378,3.584l0,213.44711c0,32.99556 -21.33334,60.07467 -48.81067,63.54489l-5.97333,0.39822l-345.54312,0c-28.27377,0 -51.48444,-24.91733 -54.44266,-56.94578l-0.34134,-6.99733l0,-213.44711c0,-2.38933 0.11378,-4.72178 0.34134,-7.05422zm397.88089,0l-341.33334,0l0,227.55555l341.33334,0l0,-227.55555zm-85.33334,56.88889a28.44444,28.44444 0 0 1 28.44445,28.44444l0,56.88889a28.44444,28.44444 0 1 1 -56.88889,0l0,-56.88889a28.44444,28.44444 0 0 1 28.44444,-28.44444z"
  587. Command="{Binding SaveDataCommand}"
  588. Cursor="Hand">
  589. <Button.Style>
  590. <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
  591. <Style.Triggers>
  592. <MultiDataTrigger>
  593. <MultiDataTrigger.Conditions>
  594. <Condition Binding="{Binding IsEnabled}" Value="True" />
  595. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
  596. </MultiDataTrigger.Conditions>
  597. <Setter Property="IsEnabled" Value="True" />
  598. </MultiDataTrigger>
  599. <MultiDataTrigger>
  600. <MultiDataTrigger.Conditions>
  601. <Condition Binding="{Binding IsEnabled}" Value="False" />
  602. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
  603. </MultiDataTrigger.Conditions>
  604. <Setter Property="IsEnabled" Value="False" />
  605. </MultiDataTrigger>
  606. <MultiDataTrigger>
  607. <MultiDataTrigger.Conditions>
  608. <Condition Binding="{Binding IsEnabled}" Value="False" />
  609. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
  610. </MultiDataTrigger.Conditions>
  611. <Setter Property="IsEnabled" Value="False" />
  612. </MultiDataTrigger>
  613. <MultiDataTrigger>
  614. <MultiDataTrigger.Conditions>
  615. <Condition Binding="{Binding IsEnabled}" Value="True" />
  616. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
  617. </MultiDataTrigger.Conditions>
  618. <Setter Property="IsEnabled" Value="False" />
  619. </MultiDataTrigger>
  620. </Style.Triggers>
  621. </Style>
  622. </Button.Style>
  623. </Button>
  624. <Viewbox
  625. Width="20"
  626. Height="20"
  627. Margin="0,10,0,0"
  628. IsHitTestVisible="False"
  629. Visibility="{Binding IsSaveData, Converter={StaticResource Boolean2VisibilityConverter}}">
  630. <Path
  631. Data="m0,508.958c0,-37.982 30.385,-68.367 68.367,-68.367c45.578,0 75.964,30.385 75.964,68.367c0,45.578 -30.385,75.964 -75.964,75.964c-37.982,0 -68.367,-30.385 -68.367,-75.964zm91.157,-265.873l0,0c0,-53.175 37.982,-98.753 91.157,-98.753s98.753,45.578 98.753,98.753l0,0c0,53.175 -45.578,91.157 -98.753,91.157s-91.157,-37.982 -91.157,-91.157l0,0zm37.982,539.344l0,0c0,-30.385 22.789,-53.175 53.175,-53.175s53.175,22.789 53.175,53.175l0,0c0,30.385 -22.789,53.175 -53.175,53.175s-53.175,-22.789 -53.175,-53.175zm265.874,113.946l0,0c0,-37.982 22.789,-60.772 60.772,-60.772s60.772,22.789 60.772,60.772l0,0c0,37.982 -22.789,60.772 -60.772,60.772c-37.982,0 -60.772,-22.789 -60.772,-60.772zm296.26,-113.946c0,-22.789 15.193,-37.982 37.982,-37.982s37.982,15.193 37.982,37.982c0,22.789 -15.193,37.982 -37.982,37.982c-22.789,0 -37.982,-15.193 -37.982,-37.982zm83.56,-273.471c0,-30.385 30.385,-60.772 68.367,-60.772c30.385,0 60.772,30.385 60.772,60.772c0,37.982 -30.385,68.367 -60.772,68.367c-37.982,0 -68.367,-30.385 -68.367,-68.367zm-174.717,-265.873c0,-75.964 60.772,-129.139 129.139,-129.139s129.139,53.175 129.139,129.139c0,68.367 -60.772,129.139 -129.139,129.139c-68.367,0 -129.139,-60.772 -129.139,-129.139zm-273.47,-113.946c0,-68.367 60.772,-129.139 129.139,-129.139s129.139,60.772 129.139,129.139c0,68.367 -60.772,129.139 -129.139,129.139c-68.367,0 -129.139,-60.772 -129.139,-129.139z"
  632. Fill="Green"
  633. RenderTransformOrigin="0.5,0.5">
  634. <Path.RenderTransform>
  635. <TransformGroup>
  636. <ScaleTransform />
  637. <SkewTransform />
  638. <RotateTransform Angle="0" />
  639. <TranslateTransform />
  640. </TransformGroup>
  641. </Path.RenderTransform>
  642. <Path.Triggers>
  643. <EventTrigger RoutedEvent="Loaded">
  644. <BeginStoryboard>
  645. <Storyboard>
  646. <DoubleAnimation
  647. AutoReverse="False"
  648. RepeatBehavior="Forever"
  649. SpeedRatio="1"
  650. Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"
  651. From="0"
  652. To="360"
  653. Duration="0:0:1" />
  654. </Storyboard>
  655. </BeginStoryboard>
  656. </EventTrigger>
  657. </Path.Triggers>
  658. </Path>
  659. </Viewbox>
  660. </Grid>
  661. <Button
  662. Width="42"
  663. Height="42"
  664. Margin="20,0,0,0"
  665. VerticalAlignment="Center"
  666. hc:IconElement.Geometry="{StaticResource LayoutGeometry}"
  667. Background="{StaticResource TitleBackColor}"
  668. Cursor="Hand"
  669. IsEnabled="{Binding LayoutVisibily}">
  670. <Button.Style>
  671. <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
  672. <Style.Triggers>
  673. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ShakerManger}">
  674. <Setter Property="Visibility" Value="Visible" />
  675. </DataTrigger>
  676. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ConfigManger}">
  677. <Setter Property="Visibility" Value="Collapsed" />
  678. </DataTrigger>
  679. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.DataManger}">
  680. <Setter Property="Visibility" Value="Collapsed" />
  681. </DataTrigger>
  682. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.LogManger}">
  683. <Setter Property="Visibility" Value="Collapsed" />
  684. </DataTrigger>
  685. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.WarnManger}">
  686. <Setter Property="Visibility" Value="Collapsed" />
  687. </DataTrigger>
  688. </Style.Triggers>
  689. </Style>
  690. </Button.Style>
  691. <hc:Interaction.Triggers>
  692. <hc:EventTrigger EventName="Click">
  693. <hc:SetPropertyAction
  694. PropertyName="IsOpen"
  695. PropertyValue="{x:Static system:Boolean.TrueString}"
  696. TargetObject="{Binding LayoutManger}" />
  697. </hc:EventTrigger>
  698. </hc:Interaction.Triggers>
  699. </Button>
  700. <Button
  701. Width="42"
  702. Height="42"
  703. Margin="20,0,0,0"
  704. VerticalAlignment="Center"
  705. hc:IconElement.Geometry="{StaticResource CloseGeometry}"
  706. Background="{StaticResource TitleBackColor}"
  707. Command="{Binding ExitCommand}"
  708. Cursor="Hand"
  709. Style="{StaticResource ImageButton}"
  710. ToolTip="关闭" />
  711. </StackPanel>
  712. </Grid>
  713. </Border>
  714. <ContentControl
  715. Grid.Row="1"
  716. Grid.ColumnSpan="2"
  717. Margin="4,0,4,0"
  718. Content="{Binding CurrentMainPage.View, Converter={StaticResource Type2ViewConverter}}"
  719. IsEnabled="{Binding IsEnabled}" />
  720. <Popup
  721. AllowsTransparency="True"
  722. IsOpen="{Binding LayoutManger.IsOpen}"
  723. Placement="Mouse"
  724. PopupAnimation="Slide"
  725. StaysOpen="False">
  726. <ContentControl Content="{Binding LayoutManger.View, Converter={StaticResource Type2ViewConverter}}" />
  727. </Popup>
  728. <Popup
  729. Grid.Row="0"
  730. Grid.RowSpan="2"
  731. Grid.ColumnSpan="2"
  732. AllowsTransparency="True"
  733. IsOpen="{Binding Source={StaticResource MainViewModel}, Path=Data.Shakers.SelectedIsOpen}"
  734. Placement="Mouse"
  735. PopupAnimation="Slide"
  736. StaysOpen="False">
  737. <view:ShakerSelectView DataContext="{Binding Source={StaticResource MainViewModel}, Path=Data.Shakers}" />
  738. </Popup>
  739. <Popup
  740. Grid.Row="0"
  741. Grid.RowSpan="2"
  742. Grid.ColumnSpan="2"
  743. AllowsTransparency="True"
  744. IsOpen="{Binding Source={StaticResource ColorPicker}, Path=IsOpen}"
  745. Placement="Mouse"
  746. PopupAnimation="Slide"
  747. StaysOpen="True">
  748. <view:ColorPickerView DataContext="{Binding Source={StaticResource ColorPicker}}" />
  749. </Popup>
  750. <hc:Drawer
  751. Grid.Row="0"
  752. Grid.RowSpan="2"
  753. Grid.ColumnSpan="2"
  754. Dock="Top"
  755. IsOpen="{Binding Source={StaticResource MainViewModel}, Path=Data.SystemConfig.UserPage.ResetPassWord.IsOpen}">
  756. <view:ResetPassWordView />
  757. </hc:Drawer>
  758. <hc:Drawer
  759. Grid.Row="0"
  760. Grid.RowSpan="2"
  761. Grid.ColumnSpan="2"
  762. Dock="Top"
  763. IsOpen="{Binding Source={StaticResource MainViewModel}, Path=Data.SystemConfig.UserPage.AddUserViewModel.IsOpen}">
  764. <view:AddUserView />
  765. </hc:Drawer>
  766. <hc:Drawer
  767. Grid.Row="0"
  768. Grid.RowSpan="2"
  769. Grid.ColumnSpan="2"
  770. Dock="Top"
  771. IsOpen="{Binding Source={x:Static vm:ProgressViewModel.Default}, Path=IsOpen}">
  772. <Border
  773. Width="{x:Static SystemParameters.PrimaryScreenWidth}"
  774. Height="{x:Static SystemParameters.PrimaryScreenHeight}"
  775. Background="#9FAAAAAA">
  776. <view:ProgressView />
  777. </Border>
  778. </hc:Drawer>
  779. <hc:Drawer
  780. Grid.Row="0"
  781. Grid.RowSpan="2"
  782. Grid.ColumnSpan="2"
  783. DataContext="{Binding Source={StaticResource Prompt}, Path=Data}"
  784. Dock="Top"
  785. IsOpen="{Binding IsOpen}">
  786. <Border
  787. Width="{x:Static SystemParameters.PrimaryScreenWidth}"
  788. Height="{x:Static SystemParameters.PrimaryScreenHeight}"
  789. Background="#9FAAAAAA">
  790. <Border
  791. Width="560"
  792. Height="340"
  793. Background="{StaticResource MainBrush}"
  794. BorderBrush="{StaticResource AuxiliaryBrush}"
  795. BorderThickness="1"
  796. CornerRadius="6">
  797. <Grid>
  798. <Grid.RowDefinitions>
  799. <RowDefinition Height="66" />
  800. <RowDefinition Height="2*" />
  801. <RowDefinition Height="*" />
  802. </Grid.RowDefinitions>
  803. <Border
  804. Grid.ColumnSpan="2"
  805. Background="{StaticResource EmbellishBrush}"
  806. CornerRadius="6,6,0,0">
  807. <TextBlock
  808. HorizontalAlignment="Center"
  809. VerticalAlignment="Center"
  810. FontSize="32"
  811. FontWeight="Bold"
  812. Foreground="{StaticResource MainBrush}"
  813. Text="{Binding Title}" />
  814. </Border>
  815. <StackPanel
  816. Grid.Row="1"
  817. HorizontalAlignment="Center"
  818. VerticalAlignment="Center"
  819. Orientation="Horizontal">
  820. <Viewbox
  821. Grid.Row="1"
  822. Grid.Column="0"
  823. Width="60"
  824. Height="60"
  825. HorizontalAlignment="Center"
  826. VerticalAlignment="Center"
  827. Visibility="{Binding IconVisibility}">
  828. <Path Data="{Binding IconGeometry, Mode=OneWay}" Fill="{Binding IconBrush}" />
  829. </Viewbox>
  830. <TextBlock
  831. Grid.Row="1"
  832. Grid.Column="1"
  833. MaxWidth="420"
  834. Margin="20"
  835. HorizontalAlignment="Left"
  836. VerticalAlignment="Center"
  837. FontSize="20"
  838. Text="{Binding Message}"
  839. TextWrapping="Wrap" />
  840. </StackPanel>
  841. <StackPanel
  842. Grid.Row="2"
  843. Grid.ColumnSpan="2"
  844. HorizontalAlignment="Center"
  845. VerticalAlignment="Center"
  846. Orientation="Horizontal">
  847. <Button
  848. Width="88"
  849. Height="38"
  850. hc:IconElement.Geometry="{StaticResource YesGeometry}"
  851. hc:IconElement.Height="20"
  852. hc:IconElement.Width="20"
  853. BorderBrush="Green"
  854. Command="{Binding YesCommand}"
  855. Content="{Binding YesText}"
  856. Cursor="Hand"
  857. FontSize="16"
  858. Foreground="Green"
  859. Style="{StaticResource HasIconButton}"
  860. ToolTip="{Binding YesText}"
  861. Visibility="{Binding YesVisibility}" />
  862. <Button
  863. Width="88"
  864. Height="38"
  865. Margin="40,0,0,0"
  866. hc:IconElement.Geometry="{StaticResource NoGeometry}"
  867. hc:IconElement.Height="20"
  868. hc:IconElement.Width="20"
  869. BorderBrush="Red"
  870. Command="{Binding NoCommand}"
  871. Content="{Binding NoText}"
  872. Cursor="Hand"
  873. FontSize="16"
  874. Foreground="Red"
  875. Style="{StaticResource HasIconButton}"
  876. ToolTip="{Binding NoText}"
  877. Visibility="{Binding NoVisibility}" />
  878. </StackPanel>
  879. </Grid>
  880. </Border>
  881. </Border>
  882. </hc:Drawer>
  883. <hc:Drawer
  884. Grid.Row="0"
  885. Grid.RowSpan="2"
  886. Grid.ColumnSpan="2"
  887. Dock="Top"
  888. IsOpen="{Binding Source={StaticResource Login}, Path=Data.IsLoggedIn, Converter={StaticResource Boolean2BooleanReConverter}}">
  889. <Grid
  890. Width="{x:Static SystemParameters.PrimaryScreenWidth}"
  891. Height="{x:Static SystemParameters.PrimaryScreenHeight}"
  892. Background="#9FAAAAAA"
  893. DataContext="{Binding Source={StaticResource Login}, Path=Data}">
  894. <Grid Width="620" Height="440">
  895. <Border
  896. Background="{StaticResource AuxiliaryBrush}"
  897. BorderBrush="{StaticResource EmbellishBrush}"
  898. BorderThickness="1"
  899. CornerRadius="6">
  900. <Border.Effect>
  901. <BlurEffect
  902. KernelType="Box"
  903. Radius="1"
  904. RenderingBias="Quality" />
  905. </Border.Effect>
  906. </Border>
  907. <Grid
  908. Width="400"
  909. Height="420"
  910. Margin="10"
  911. HorizontalAlignment="Center"
  912. VerticalAlignment="Center">
  913. <Grid.RowDefinitions>
  914. <RowDefinition Height="100" />
  915. <RowDefinition />
  916. <RowDefinition />
  917. <RowDefinition Height="32" />
  918. <RowDefinition />
  919. </Grid.RowDefinitions>
  920. <TextBlock
  921. HorizontalAlignment="Center"
  922. VerticalAlignment="Center"
  923. FontSize="42"
  924. Foreground="{StaticResource EmbellishBrush}"
  925. Text="用户登录" />
  926. <StackPanel
  927. Grid.Row="1"
  928. Height="42"
  929. Orientation="Horizontal">
  930. <TextBlock
  931. HorizontalAlignment="Right"
  932. VerticalAlignment="Center"
  933. FontSize="16"
  934. Foreground="{StaticResource LableBrush}"
  935. Text="用户名:" />
  936. <hc:WatermarkTextBox
  937. Width="320"
  938. Height="32"
  939. Margin="10,0,0,0"
  940. VerticalAlignment="Center"
  941. VerticalContentAlignment="Center"
  942. hc:BorderElement.CornerRadius="4"
  943. BorderBrush="{StaticResource BorderBrush}"
  944. BorderThickness="1"
  945. CaretBrush="{StaticResource LableBrush}"
  946. FontSize="16"
  947. Foreground="{StaticResource LableBrush}"
  948. InputScope="AlphanumericHalfWidth"
  949. MaxLength="20"
  950. Text="{Binding UserName}"
  951. Watermark="输入用户名" />
  952. </StackPanel>
  953. <StackPanel
  954. Grid.Row="2"
  955. Height="42"
  956. Orientation="Horizontal">
  957. <TextBlock
  958. HorizontalAlignment="Right"
  959. VerticalAlignment="Center"
  960. FontSize="16"
  961. Text=" 密码:" />
  962. <hc:PasswordBox
  963. Width="320"
  964. Height="32"
  965. Margin="10,0,0,0"
  966. VerticalAlignment="Center"
  967. VerticalContentAlignment="Center"
  968. hc:InfoElement.Placeholder="输入密码"
  969. Background="Transparent"
  970. BorderBrush="{StaticResource BorderBrush}"
  971. BorderThickness="1"
  972. CaretBrush="Black"
  973. FontSize="16"
  974. Foreground="Black"
  975. IsSafeEnabled="False"
  976. MaxLength="20"
  977. ShowEyeButton="True"
  978. UnsafePassword="{Binding PassWord}">
  979. <hc:PasswordBox.InputBindings>
  980. <KeyBinding Key="Enter" Command="{Binding LoginCommand}" />
  981. </hc:PasswordBox.InputBindings>
  982. </hc:PasswordBox>
  983. </StackPanel>
  984. <TextBlock
  985. Grid.Row="3"
  986. Foreground="Red"
  987. Text="{Binding Message}" />
  988. <StackPanel
  989. Grid.Row="4"
  990. HorizontalAlignment="Center"
  991. VerticalAlignment="Center"
  992. Orientation="Horizontal">
  993. <Button
  994. Width="120"
  995. Height="36"
  996. hc:IconElement.Geometry="{StaticResource LoginGeometry}"
  997. hc:IconElement.Height="20"
  998. hc:IconElement.Width="20"
  999. Command="{Binding LoginCommand}"
  1000. Content="登录"
  1001. Cursor="Hand"
  1002. FontSize="16"
  1003. Style="{StaticResource HasIconButton}" />
  1004. <Button
  1005. Width="120"
  1006. Height="36"
  1007. Margin="40,0,0,0"
  1008. hc:IconElement.Geometry="{StaticResource ExitGeometry}"
  1009. hc:IconElement.Height="20"
  1010. hc:IconElement.Width="20"
  1011. Command="{Binding Source={StaticResource MainViewModel}, Path=Data.ShutDownCommand}"
  1012. Content="退出"
  1013. Cursor="Hand"
  1014. FontSize="16"
  1015. BorderBrush="Red"
  1016. Foreground="Red"
  1017. Style="{StaticResource HasIconButton}" />
  1018. </StackPanel>
  1019. </Grid>
  1020. </Grid>
  1021. <Button
  1022. Margin="0,0,10,10"
  1023. HorizontalAlignment="Right"
  1024. VerticalAlignment="Bottom"
  1025. BorderThickness="0"
  1026. Command="{Binding Source={StaticResource Login}, Path=Data.AnonymousLoginCommand}"
  1027. Content="匿名登录"
  1028. FontSize="22"
  1029. Foreground="{StaticResource EmbellishBrush}"
  1030. ToolTip="匿名登录">
  1031. <Button.Style>
  1032. <Style TargetType="{x:Type Button}">
  1033. <Setter Property="Cursor" Value="Hand" />
  1034. <Setter Property="Template">
  1035. <Setter.Value>
  1036. <ControlTemplate TargetType="{x:Type Button}">
  1037. <TextBlock
  1038. x:Name="text"
  1039. Text="{TemplateBinding Content}"
  1040. TextDecorations="Underline" />
  1041. <ControlTemplate.Triggers>
  1042. <Trigger Property="IsMouseOver" Value="True">
  1043. <Setter TargetName="text" Property="Foreground" Value="{DynamicResource LightEmbellishBrush}" />
  1044. </Trigger>
  1045. </ControlTemplate.Triggers>
  1046. </ControlTemplate>
  1047. </Setter.Value>
  1048. </Setter>
  1049. </Style>
  1050. </Button.Style>
  1051. </Button>
  1052. </Grid>
  1053. </hc:Drawer>
  1054. <hc:Drawer
  1055. Grid.Row="0"
  1056. Grid.RowSpan="2"
  1057. Grid.ColumnSpan="2"
  1058. Dock="Top"
  1059. IsOpen="{Binding Source={StaticResource DeviceControl}, Path=Data}">
  1060. <Grid
  1061. Width="{x:Static SystemParameters.PrimaryScreenWidth}"
  1062. Height="{x:Static SystemParameters.PrimaryScreenHeight}"
  1063. Background="#9FAAAAAA">
  1064. <Border
  1065. Width="760"
  1066. Height="760"
  1067. Background="{StaticResource MainBrush}"
  1068. BorderBrush="{StaticResource AuxiliaryBrush}"
  1069. BorderThickness="1"
  1070. CornerRadius="6,6,0,0">
  1071. <Grid>
  1072. <Grid.RowDefinitions>
  1073. <RowDefinition Height="48" />
  1074. <RowDefinition Height="auto" />
  1075. <RowDefinition Height="*" />
  1076. </Grid.RowDefinitions>
  1077. <Grid Grid.Row="1">
  1078. <Grid.ColumnDefinitions>
  1079. <ColumnDefinition />
  1080. </Grid.ColumnDefinitions>
  1081. <GroupBox
  1082. Grid.Row="0"
  1083. Margin="4"
  1084. hc:TitleElement.Background="{StaticResource EmbellishBrush}"
  1085. hc:TitleElement.MinHeight="36"
  1086. Background="Transparent"
  1087. FontSize="20"
  1088. Foreground="{StaticResource MainBrush}"
  1089. Header="功放控制"
  1090. Style="{StaticResource GroupBoxTab}">
  1091. <Grid>
  1092. <Grid.RowDefinitions>
  1093. <RowDefinition Height="160" />
  1094. <RowDefinition Height="100" />
  1095. </Grid.RowDefinitions>
  1096. <UniformGrid
  1097. Grid.Column="0"
  1098. Margin="0,10,0,0"
  1099. HorizontalAlignment="Center"
  1100. VerticalAlignment="Top"
  1101. Rows="2">
  1102. <StackPanel Orientation="Horizontal">
  1103. <TextBlock
  1104. VerticalAlignment="Center"
  1105. FontSize="24"
  1106. Foreground="{StaticResource LableBrush}"
  1107. Text="增益" />
  1108. <Slider
  1109. Width="440"
  1110. Height="48"
  1111. Margin="10,0,0,0"
  1112. hc:BorderElement.CornerRadius="6,0,0,6"
  1113. Background="Green"
  1114. FontSize="24"
  1115. Foreground="{StaticResource LableBrush}"
  1116. IsMoveToPointEnabled="True"
  1117. IsSnapToTickEnabled="True"
  1118. Maximum="100"
  1119. Minimum="0"
  1120. Style="{DynamicResource InputElementBaseStyle}"
  1121. Template="{DynamicResource SliderStyle}"
  1122. Value="{Binding Shakers.Gain}" />
  1123. </StackPanel>
  1124. <StackPanel
  1125. Margin="0,20,0,0"
  1126. HorizontalAlignment="Center"
  1127. Orientation="Horizontal">
  1128. <Button
  1129. Width="180"
  1130. Height="48"
  1131. hc:IconElement.Geometry="{StaticResource StartGeometry}"
  1132. hc:IconElement.Height="28"
  1133. hc:IconElement.Width="28"
  1134. Command="{Binding Shakers.OpenCommand}"
  1135. Content="打开增益"
  1136. FontSize="16"
  1137. Style="{StaticResource HasIconButton}"
  1138. ToolTip="打开增益" />
  1139. <Button
  1140. Width="180"
  1141. Height="48"
  1142. Margin="80,0,0,0"
  1143. hc:IconElement.Geometry="{StaticResource StopGeometry}"
  1144. hc:IconElement.Height="28"
  1145. hc:IconElement.Width="28"
  1146. Command="{Binding Shakers.CloseCommand}"
  1147. Content="关闭增益"
  1148. FontSize="16"
  1149. Style="{StaticResource HasIconButton}"
  1150. ToolTip="关闭增益" />
  1151. </StackPanel>
  1152. </UniformGrid>
  1153. <UniformGrid Grid.Row="1" Columns="3">
  1154. <UniformGrid.Resources>
  1155. <system:Double x:Key="size">72</system:Double>
  1156. </UniformGrid.Resources>
  1157. <Button
  1158. Width="{StaticResource size}"
  1159. Height="{StaticResource size}"
  1160. hc:IconElement.Geometry="{StaticResource StartGeometry}"
  1161. Command="{Binding Shakers.StartCommand}"
  1162. Style="{StaticResource ImageButton}"
  1163. ToolTip="打开功放" />
  1164. <Button
  1165. Width="{StaticResource size}"
  1166. Height="{StaticResource size}"
  1167. hc:IconElement.Geometry="{StaticResource StopGeometry}"
  1168. Command="{Binding Shakers.StopCommand}"
  1169. Style="{StaticResource ImageButton}"
  1170. ToolTip="关闭功放" />
  1171. <Button
  1172. Width="{StaticResource size}"
  1173. Height="{StaticResource size}"
  1174. hc:IconElement.Geometry="{StaticResource ResetGeometry}"
  1175. Command="{Binding Shakers.ResetCommand}"
  1176. Style="{StaticResource ImageButton}"
  1177. ToolTip="重置功放错误" />
  1178. </UniformGrid>
  1179. </Grid>
  1180. </GroupBox>
  1181. </Grid>
  1182. <Border Background="{StaticResource EmbellishBrush}" CornerRadius="6,6,0,0">
  1183. <Grid>
  1184. <TextBlock
  1185. HorizontalAlignment="Center"
  1186. VerticalAlignment="Center"
  1187. FontSize="22"
  1188. Foreground="{StaticResource MainBrush}"
  1189. Text="设备控制" />
  1190. <Button
  1191. Margin="0,0,10,0"
  1192. HorizontalAlignment="Right"
  1193. VerticalAlignment="Center"
  1194. hc:IconElement.Geometry="{StaticResource CloseGeometry}"
  1195. ToolTip="关闭">
  1196. <Button.Style>
  1197. <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
  1198. <Setter Property="Foreground" Value="{StaticResource MainBrush}" />
  1199. </Style>
  1200. </Button.Style>
  1201. <hc:Interaction.Triggers>
  1202. <hc:EventTrigger EventName="Click">
  1203. <hc:SetPropertyAction
  1204. PropertyName="Data"
  1205. PropertyValue="{x:Static system:Boolean.FalseString}"
  1206. TargetObject="{Binding Source={StaticResource DeviceControl}}" />
  1207. </hc:EventTrigger>
  1208. </hc:Interaction.Triggers>
  1209. </Button>
  1210. </Grid>
  1211. </Border>
  1212. <Border
  1213. Grid.Row="2"
  1214. Margin="4,0,4,4"
  1215. BorderBrush="{StaticResource AuxiliaryBrush}"
  1216. BorderThickness="1"
  1217. CornerRadius="6,6,0,0">
  1218. <ListView
  1219. Foreground="{StaticResource LableBrush}"
  1220. ItemsSource="{Binding Shakers.Shakers}"
  1221. TextBlock.FontSize="14">
  1222. <ListView.Style>
  1223. <Style TargetType="ListView" BasedOn="{x:Null}">
  1224. <Setter Property="Background" Value="Transparent" />
  1225. <Setter Property="BorderBrush" Value="Transparent" />
  1226. <Setter Property="VerticalContentAlignment" Value="Stretch" />
  1227. <Setter Property="Padding" Value="0" />
  1228. <Setter Property="Template">
  1229. <Setter.Value>
  1230. <ControlTemplate TargetType="ListView">
  1231. <Grid>
  1232. <Grid.RowDefinitions>
  1233. <RowDefinition Height="42" />
  1234. <RowDefinition Height="*" />
  1235. </Grid.RowDefinitions>
  1236. <Border Background="{StaticResource EmbellishBrush}" CornerRadius="6,6,0,0">
  1237. <Grid>
  1238. <Grid.ColumnDefinitions>
  1239. <ColumnDefinition Width="68" />
  1240. <ColumnDefinition Width="*" />
  1241. </Grid.ColumnDefinitions>
  1242. <TextBlock
  1243. HorizontalAlignment="Center"
  1244. VerticalAlignment="Center"
  1245. Foreground="{StaticResource MainBrush}"
  1246. Text="启用" />
  1247. <TextBlock
  1248. Grid.Column="1"
  1249. HorizontalAlignment="Center"
  1250. VerticalAlignment="Center"
  1251. Foreground="{StaticResource MainBrush}"
  1252. Text="振动台" />
  1253. </Grid>
  1254. </Border>
  1255. <hc:ScrollViewer
  1256. Grid.Row="1"
  1257. HorizontalScrollBarVisibility="Hidden"
  1258. VerticalScrollBarVisibility="Auto">
  1259. <ItemsPresenter Margin="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1260. </hc:ScrollViewer>
  1261. </Grid>
  1262. </ControlTemplate>
  1263. </Setter.Value>
  1264. </Setter>
  1265. <Setter Property="ItemTemplate">
  1266. <Setter.Value>
  1267. <DataTemplate>
  1268. <Grid IsEnabled="{Binding IsConnected}">
  1269. <Grid.ColumnDefinitions>
  1270. <ColumnDefinition Width="68" />
  1271. <ColumnDefinition Width="680" />
  1272. </Grid.ColumnDefinitions>
  1273. <Line
  1274. Grid.ColumnSpan="2"
  1275. VerticalAlignment="Bottom"
  1276. Stroke="{StaticResource AuxiliaryBrush}"
  1277. StrokeThickness="1"
  1278. X1="0"
  1279. X2="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Grid}, Path=ActualWidth}"
  1280. Y1="0"
  1281. Y2="0" />
  1282. <CheckBox
  1283. HorizontalAlignment="Center"
  1284. VerticalAlignment="Center"
  1285. IsChecked="{Binding IsDeviceControl}" />
  1286. <TextBlock
  1287. Grid.Column="1"
  1288. HorizontalAlignment="Center"
  1289. VerticalAlignment="Center"
  1290. Text="{Binding Description}">
  1291. <hc:Interaction.Triggers>
  1292. <hc:EventTrigger EventName="MouseUp">
  1293. <hc:SetPropertyAction
  1294. PropertyName="IsDeviceControl"
  1295. PropertyValue="{Binding IsDeviceControl, Converter={StaticResource Boolean2BooleanReConverter}}"
  1296. TargetObject="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=TextBlock}, Path=DataContext}" />
  1297. </hc:EventTrigger>
  1298. </hc:Interaction.Triggers>
  1299. <TextBlock.Style>
  1300. <Style TargetType="TextBlock">
  1301. <Style.Triggers>
  1302. <Trigger Property="IsEnabled" Value="False">
  1303. <Setter Property="Foreground" Value="{StaticResource TextInfoBrush}" />
  1304. </Trigger>
  1305. </Style.Triggers>
  1306. </Style>
  1307. </TextBlock.Style>
  1308. </TextBlock>
  1309. </Grid>
  1310. </DataTemplate>
  1311. </Setter.Value>
  1312. </Setter>
  1313. <Setter Property="ItemContainerStyle">
  1314. <Setter.Value>
  1315. <Style TargetType="ListViewItem">
  1316. <Setter Property="Background" Value="Transparent" />
  1317. <Setter Property="BorderBrush" Value="Transparent" />
  1318. <Setter Property="BorderThickness" Value="0" />
  1319. <Setter Property="Height" Value="42" />
  1320. <Setter Property="SnapsToDevicePixels" Value="True" />
  1321. <Setter Property="OverridesDefaultStyle" Value="True" />
  1322. <Setter Property="Cursor" Value="Hand" />
  1323. <Setter Property="IsEnabled" Value="True" />
  1324. <Setter Property="Padding" Value="0" />
  1325. <Setter Property="Template">
  1326. <Setter.Value>
  1327. <ControlTemplate TargetType="ListViewItem">
  1328. <ContentPresenter
  1329. Margin="0,0,0,0"
  1330. Content="{TemplateBinding Content}"
  1331. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  1332. ContentTemplate="{TemplateBinding ContentTemplate}"
  1333. ContentTemplateSelector="{x:Null}"
  1334. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}" />
  1335. </ControlTemplate>
  1336. </Setter.Value>
  1337. </Setter>
  1338. </Style>
  1339. </Setter.Value>
  1340. </Setter>
  1341. <Setter Property="ItemsPanel">
  1342. <Setter.Value>
  1343. <ItemsPanelTemplate>
  1344. <UniformGrid
  1345. Margin="0"
  1346. Columns="1"
  1347. Style="{x:Null}" />
  1348. </ItemsPanelTemplate>
  1349. </Setter.Value>
  1350. </Setter>
  1351. </Style>
  1352. </ListView.Style>
  1353. </ListView>
  1354. </Border>
  1355. </Grid>
  1356. </Border>
  1357. </Grid>
  1358. </hc:Drawer>
  1359. </Grid>
  1360. </Viewbox>
  1361. </Window>