MainWindow.xaml 109 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308
  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. BorderThickness="0"
  18. DataContext="{Binding Source={StaticResource MainViewModel}, Path=Data}"
  19. Left="0"
  20. ResizeMode="NoResize"
  21. Top="0"
  22. Topmost="True"
  23. WindowStartupLocation="Manual"
  24. WindowState="Normal"
  25. WindowStyle="None"
  26. mc:Ignorable="d">
  27. <Window.Resources>
  28. <Geometry x:Key="MainGeometry">M0,0 L1920,0 L1920,100 L1680,100 L1610,20 L600,20 L530,100 L0,100Z</Geometry>
  29. <vm:BindingProxy x:Key="DeviceControl" Data="{x:Static system:Boolean.FalseString}" />
  30. </Window.Resources>
  31. <Window.Background>
  32. <ImageBrush ImageSource="/Resources/background.png" Opacity="0.6" />
  33. </Window.Background>
  34. <hc:Interaction.Triggers>
  35. <hc:EventTrigger EventName="Closing">
  36. <hc:InvokeCommandAction Command="{Binding CloseCommand}" />
  37. </hc:EventTrigger>
  38. </hc:Interaction.Triggers>
  39. <WindowChrome.WindowChrome>
  40. <WindowChrome
  41. CaptionHeight="0"
  42. CornerRadius="0"
  43. GlassFrameThickness="0"
  44. ResizeBorderThickness="0" />
  45. </WindowChrome.WindowChrome>
  46. <Viewbox Stretch="Fill">
  47. <Grid Width="1920" Height="1080">
  48. <Grid.Style>
  49. <Style TargetType="Grid">
  50. <Setter Property="IsEnabled">
  51. <Setter.Value>
  52. <MultiBinding
  53. Converter="{StaticResource MainWindowEnabledConverter}"
  54. ConverterParameter="1"
  55. Mode="OneWay">
  56. <Binding
  57. Mode="OneWay"
  58. Path="Data.IsOpen"
  59. Source="{StaticResource Prompt}" />
  60. <Binding
  61. Converter="{StaticResource Boolean2BooleanReConverter}"
  62. Mode="OneWay"
  63. Path="Data.IsLoggedIn"
  64. Source="{StaticResource Login}" />
  65. <Binding
  66. Mode="OneWay"
  67. Path="Data"
  68. Source="{StaticResource DeviceControl}" />
  69. <Binding
  70. Mode="OneWay"
  71. Path="IsOpen"
  72. Source="{x:Static vm:ProgressViewModel.Default}" />
  73. </MultiBinding>
  74. </Setter.Value>
  75. </Setter>
  76. </Style>
  77. </Grid.Style>
  78. <Grid.RowDefinitions>
  79. <RowDefinition Height="120" />
  80. <RowDefinition Height="*" />
  81. <RowDefinition Height="40" />
  82. </Grid.RowDefinitions>
  83. <Rectangle
  84. Grid.Row="0"
  85. Grid.RowSpan="3"
  86. Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Grid}, Path=ActualWidth}"
  87. Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Grid}, Path=ActualHeight}"
  88. Stroke="#9FFF0000"
  89. StrokeThickness="10"
  90. Visibility="{Binding SystemConfig.GPIOControl.Level, Converter={StaticResource Boolean2VisibilityConverter}}" />
  91. <StackPanel
  92. Grid.Row="2"
  93. HorizontalAlignment="Center"
  94. VerticalAlignment="Center"
  95. Orientation="Horizontal">
  96. <Viewbox HorizontalAlignment="Center" VerticalAlignment="Center">
  97. <Grid>
  98. <Grid.Resources>
  99. <SolidColorBrush x:Key="backcolor" Color="Transparent" />
  100. <SolidColorBrush x:Key="iconcolor" Color="#1B3566" />
  101. <SolidColorBrush x:Key="cirquecolor" Color="#2A4369" />
  102. <SolidColorBrush x:Key="st3" Color="#6A0811" />
  103. <SolidColorBrush x:Key="textcolor" Color="#090605" />
  104. </Grid.Resources>
  105. <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}" />
  106. <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}" />
  107. <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}" />
  108. <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}" />
  109. <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}" />
  110. <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}" />
  111. <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}" />
  112. <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}" />
  113. <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}" />
  114. <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}" />
  115. <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}" />
  116. </Grid>
  117. </Viewbox>
  118. </StackPanel>
  119. <Grid>
  120. <Viewbox Margin="10" Stretch="Fill">
  121. <Path
  122. Data="{StaticResource MainGeometry}"
  123. Stroke="#1F6cd7ea"
  124. StrokeThickness="1">
  125. <Path.Effect>
  126. <DropShadowEffect
  127. BlurRadius="20"
  128. Opacity="1"
  129. ShadowDepth="0"
  130. Color="{StaticResource ButtonEffectColor}" />
  131. </Path.Effect>
  132. </Path>
  133. </Viewbox>
  134. <Viewbox Margin="10" Stretch="Fill">
  135. <hc:AnimationPath
  136. Data="{StaticResource MainGeometry}"
  137. Stroke="Blue"
  138. StrokeThickness="2"
  139. Duration="0:0:5" />
  140. </Viewbox>
  141. <TextBlock
  142. Margin="20,0,0,0"
  143. HorizontalAlignment="Left"
  144. VerticalAlignment="Center"
  145. FontSize="52"
  146. Foreground="{StaticResource WindowTitleColor}"
  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="#1A5eea" />
  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="#01015EEA" />
  197. <GradientStop Offset="1" Color="#3F007EFF" />
  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. Foreground="{StaticResource SystemItemsForeColor}"
  220. Text="{Binding MainPageType, Converter={StaticResource EnumToDescription}}" />
  221. </Grid>
  222. </StackPanel>
  223. </DataTemplate>
  224. </Setter.Value>
  225. </Setter>
  226. <Setter Property="ItemContainerStyle">
  227. <Setter.Value>
  228. <Style TargetType="ListViewItem">
  229. <Setter Property="Background" Value="Transparent" />
  230. <Setter Property="BorderBrush" Value="Transparent" />
  231. <Setter Property="BorderThickness" Value="0" />
  232. <Setter Property="SnapsToDevicePixels" Value="True" />
  233. <Setter Property="OverridesDefaultStyle" Value="True" />
  234. <Setter Property="Cursor" Value="Hand" />
  235. <Setter Property="IsEnabled" Value="{Binding IsEnabled}" />
  236. <Setter Property="Padding" Value="0" />
  237. <Setter Property="Template">
  238. <Setter.Value>
  239. <ControlTemplate TargetType="ListViewItem">
  240. <ContentPresenter
  241. Margin="0,0,0,0"
  242. Content="{TemplateBinding Content}"
  243. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  244. ContentTemplate="{TemplateBinding ContentTemplate}"
  245. ContentTemplateSelector="{x:Null}"
  246. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}" />
  247. </ControlTemplate>
  248. </Setter.Value>
  249. </Setter>
  250. </Style>
  251. </Setter.Value>
  252. </Setter>
  253. <Setter Property="ItemsPanel">
  254. <Setter.Value>
  255. <ItemsPanelTemplate>
  256. <UniformGrid
  257. Margin="0"
  258. Rows="1"
  259. Style="{x:Null}" />
  260. </ItemsPanelTemplate>
  261. </Setter.Value>
  262. </Setter>
  263. </Style>
  264. </ListView.Style>
  265. </ListView>
  266. <TextBlock
  267. Margin="0,20,20,0"
  268. HorizontalAlignment="Right"
  269. VerticalAlignment="Top"
  270. FontSize="24"
  271. Foreground="Aqua"
  272. Text="{Binding NowTime, StringFormat=yyyy-MM-dd HH:mm:ss}" />
  273. <StackPanel
  274. Margin="0,0,20,20"
  275. HorizontalAlignment="Right"
  276. VerticalAlignment="Bottom"
  277. Background="Transparent"
  278. Orientation="Horizontal">
  279. <Button
  280. Width="42"
  281. Height="42"
  282. VerticalAlignment="Center"
  283. hc:IconElement.Geometry="{StaticResource DeviceControlGeometry}"
  284. Cursor="Hand"
  285. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
  286. Style="{StaticResource ImageButton}"
  287. ToolTip="设备控制">
  288. <hc:Interaction.Triggers>
  289. <hc:EventTrigger EventName="Click">
  290. <hc:SetPropertyAction
  291. PropertyName="Data"
  292. PropertyValue="{x:Static system:Boolean.TrueString}"
  293. TargetObject="{Binding Source={StaticResource DeviceControl}}" />
  294. </hc:EventTrigger>
  295. </hc:Interaction.Triggers>
  296. </Button>
  297. <Grid Margin="20,0,0,0">
  298. <Button
  299. Width="42"
  300. Height="42"
  301. 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"
  302. Background="Transparent"
  303. Command="{Binding SaveDataCommand}"
  304. Cursor="Hand">
  305. <Button.Style>
  306. <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
  307. <Style.Triggers>
  308. <MultiDataTrigger>
  309. <MultiDataTrigger.Conditions>
  310. <Condition Binding="{Binding IsEnabled}" Value="True" />
  311. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
  312. </MultiDataTrigger.Conditions>
  313. <Setter Property="IsEnabled" Value="True" />
  314. </MultiDataTrigger>
  315. <MultiDataTrigger>
  316. <MultiDataTrigger.Conditions>
  317. <Condition Binding="{Binding IsEnabled}" Value="False" />
  318. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
  319. </MultiDataTrigger.Conditions>
  320. <Setter Property="IsEnabled" Value="False" />
  321. </MultiDataTrigger>
  322. <MultiDataTrigger>
  323. <MultiDataTrigger.Conditions>
  324. <Condition Binding="{Binding IsEnabled}" Value="False" />
  325. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
  326. </MultiDataTrigger.Conditions>
  327. <Setter Property="IsEnabled" Value="False" />
  328. </MultiDataTrigger>
  329. <MultiDataTrigger>
  330. <MultiDataTrigger.Conditions>
  331. <Condition Binding="{Binding IsEnabled}" Value="True" />
  332. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
  333. </MultiDataTrigger.Conditions>
  334. <Setter Property="IsEnabled" Value="False" />
  335. </MultiDataTrigger>
  336. </Style.Triggers>
  337. </Style>
  338. </Button.Style>
  339. </Button>
  340. <Viewbox
  341. Width="20"
  342. Height="20"
  343. Margin="0,10,0,0"
  344. IsHitTestVisible="False"
  345. Visibility="{Binding IsSaveData, Converter={StaticResource Boolean2VisibilityConverter}}">
  346. <Path
  347. 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"
  348. Fill="Green"
  349. RenderTransformOrigin="0.5,0.5">
  350. <Path.RenderTransform>
  351. <TransformGroup>
  352. <ScaleTransform />
  353. <SkewTransform />
  354. <RotateTransform Angle="0" />
  355. <TranslateTransform />
  356. </TransformGroup>
  357. </Path.RenderTransform>
  358. <Path.Triggers>
  359. <EventTrigger RoutedEvent="Loaded">
  360. <BeginStoryboard>
  361. <Storyboard>
  362. <DoubleAnimation
  363. AutoReverse="False"
  364. RepeatBehavior="Forever"
  365. SpeedRatio="1"
  366. Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"
  367. From="0"
  368. To="360"
  369. Duration="0:0:1" />
  370. </Storyboard>
  371. </BeginStoryboard>
  372. </EventTrigger>
  373. </Path.Triggers>
  374. </Path>
  375. </Viewbox>
  376. </Grid>
  377. <Button
  378. Width="42"
  379. Height="42"
  380. Margin="20,0,0,0"
  381. VerticalAlignment="Center"
  382. hc:IconElement.Geometry="{StaticResource LayoutGeometry}"
  383. Cursor="Hand"
  384. IsEnabled="{Binding LayoutVisibily}">
  385. <Button.Style>
  386. <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
  387. <Style.Triggers>
  388. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ShakerManger}">
  389. <Setter Property="Visibility" Value="Visible" />
  390. </DataTrigger>
  391. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ConfigManger}">
  392. <Setter Property="Visibility" Value="Collapsed" />
  393. </DataTrigger>
  394. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.DataManger}">
  395. <Setter Property="Visibility" Value="Collapsed" />
  396. </DataTrigger>
  397. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.LogManger}">
  398. <Setter Property="Visibility" Value="Collapsed" />
  399. </DataTrigger>
  400. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.WarnManger}">
  401. <Setter Property="Visibility" Value="Collapsed" />
  402. </DataTrigger>
  403. </Style.Triggers>
  404. </Style>
  405. </Button.Style>
  406. <hc:Interaction.Triggers>
  407. <hc:EventTrigger EventName="Click">
  408. <hc:SetPropertyAction
  409. PropertyName="IsOpen"
  410. PropertyValue="{x:Static system:Boolean.TrueString}"
  411. TargetObject="{Binding LayoutManger}" />
  412. </hc:EventTrigger>
  413. </hc:Interaction.Triggers>
  414. </Button>
  415. <Button
  416. Width="42"
  417. Height="42"
  418. Margin="20,0,0,0"
  419. VerticalAlignment="Center"
  420. hc:IconElement.Geometry="{StaticResource CloseGeometry}"
  421. Command="{Binding ExitCommand}"
  422. Cursor="Hand"
  423. Style="{StaticResource ImageButton}"
  424. ToolTip="关闭" />
  425. </StackPanel>
  426. </Grid>
  427. <Border
  428. Grid.ColumnSpan="2"
  429. Background="{StaticResource TitleBackColor}"
  430. Visibility="Collapsed">
  431. <Grid>
  432. <Grid.ColumnDefinitions>
  433. <ColumnDefinition Width="400" />
  434. <ColumnDefinition Width="*" />
  435. <ColumnDefinition Width="200" />
  436. <ColumnDefinition Width="auto" />
  437. </Grid.ColumnDefinitions>
  438. <TextBlock
  439. Margin="20,0,10,0"
  440. VerticalAlignment="Center"
  441. FontSize="36"
  442. FontWeight="Bold"
  443. Text="{Binding SystemConfig.SystemPage.MangerTitle}" />
  444. <ListView
  445. Grid.Column="1"
  446. Margin="20,0,20,0"
  447. IsEnabled="{Binding IsEnabled}"
  448. ItemsSource="{Binding MainPages}"
  449. SelectedValue="{Binding CurrentMainPage}">
  450. <ListView.Style>
  451. <Style TargetType="ListView" BasedOn="{x:Null}">
  452. <Setter Property="Background" Value="Transparent" />
  453. <Setter Property="BorderBrush" Value="Transparent" />
  454. <Setter Property="VerticalContentAlignment" Value="Stretch" />
  455. <Setter Property="Padding" Value="0" />
  456. <Setter Property="Template">
  457. <Setter.Value>
  458. <ControlTemplate TargetType="ListView">
  459. <ItemsPresenter Margin="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  460. </ControlTemplate>
  461. </Setter.Value>
  462. </Setter>
  463. <Setter Property="ItemTemplate">
  464. <Setter.Value>
  465. <DataTemplate>
  466. <StackPanel
  467. Margin="0"
  468. HorizontalAlignment="Center"
  469. VerticalAlignment="Center"
  470. Background="Transparent"
  471. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=Anonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
  472. Orientation="Horizontal">
  473. <Viewbox
  474. Width="32"
  475. Height="32"
  476. HorizontalAlignment="Right"
  477. VerticalAlignment="Center">
  478. <Path Data="{Binding IconPath}" Fill="{StaticResource SystemItemsForeColor}" />
  479. </Viewbox>
  480. <TextBlock
  481. Grid.Column="1"
  482. Margin="20,0,0,0"
  483. HorizontalAlignment="Left"
  484. VerticalAlignment="Center"
  485. FontSize="22"
  486. Foreground="{StaticResource SystemItemsForeColor}"
  487. Text="{Binding MainPageType, Converter={StaticResource EnumToDescription}}" />
  488. </StackPanel>
  489. </DataTemplate>
  490. </Setter.Value>
  491. </Setter>
  492. <Setter Property="ItemContainerStyle">
  493. <Setter.Value>
  494. <Style TargetType="ListViewItem">
  495. <Setter Property="Background" Value="Transparent" />
  496. <Setter Property="BorderBrush" Value="Transparent" />
  497. <Setter Property="BorderThickness" Value="0" />
  498. <Setter Property="SnapsToDevicePixels" Value="True" />
  499. <Setter Property="OverridesDefaultStyle" Value="True" />
  500. <Setter Property="Cursor" Value="Hand" />
  501. <Setter Property="IsEnabled" Value="{Binding IsEnabled}" />
  502. <Setter Property="Padding" Value="0" />
  503. <Setter Property="Template">
  504. <Setter.Value>
  505. <ControlTemplate TargetType="ListViewItem">
  506. <Border
  507. x:Name="backcolor"
  508. Margin="0"
  509. Padding="0"
  510. CornerRadius="12,12,0,0">
  511. <ContentPresenter
  512. Margin="0"
  513. Content="{TemplateBinding Content}"
  514. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  515. ContentTemplate="{TemplateBinding ContentTemplate}"
  516. ContentTemplateSelector="{x:Null}"
  517. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=Anonymous, Converter={StaticResource Boolean2BooleanReConverter}}" />
  518. </Border>
  519. <ControlTemplate.Triggers>
  520. <Trigger Property="IsSelected" Value="True">
  521. <Setter TargetName="backcolor" Property="Background" Value="{StaticResource SystemItemsSelectBackColor}" />
  522. </Trigger>
  523. </ControlTemplate.Triggers>
  524. </ControlTemplate>
  525. </Setter.Value>
  526. </Setter>
  527. </Style>
  528. </Setter.Value>
  529. </Setter>
  530. <Setter Property="ItemsPanel">
  531. <Setter.Value>
  532. <ItemsPanelTemplate>
  533. <UniformGrid
  534. Margin="0"
  535. Rows="1"
  536. Style="{x:Null}" />
  537. </ItemsPanelTemplate>
  538. </Setter.Value>
  539. </Setter>
  540. </Style>
  541. </ListView.Style>
  542. </ListView>
  543. <UniformGrid Grid.Column="2" Rows="1">
  544. <Button
  545. Width="42"
  546. Height="42"
  547. Padding="0"
  548. hc:IconElement.Geometry="{StaticResource StartGeometry}"
  549. Command="{Binding StartAllCommand}"
  550. IsEnabled="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
  551. Style="{StaticResource ImageButton}"
  552. ToolTip="全部开始" />
  553. <Button
  554. Width="42"
  555. Height="42"
  556. Padding="0"
  557. hc:IconElement.Geometry="{StaticResource StopGeometry}"
  558. Command="{Binding StopAllCommand}"
  559. IsEnabled="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
  560. Style="{StaticResource ImageButton}"
  561. ToolTip="全部停止" />
  562. </UniformGrid>
  563. <StackPanel
  564. Grid.Column="3"
  565. Margin="40,0,10,0"
  566. VerticalAlignment="Center"
  567. Orientation="Horizontal">
  568. <Grid>
  569. <Button
  570. Width="42"
  571. Height="42"
  572. 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"
  573. Command="{Binding SaveDataCommand}"
  574. Cursor="Hand">
  575. <Button.Style>
  576. <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
  577. <Style.Triggers>
  578. <MultiDataTrigger>
  579. <MultiDataTrigger.Conditions>
  580. <Condition Binding="{Binding IsEnabled}" Value="True" />
  581. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
  582. </MultiDataTrigger.Conditions>
  583. <Setter Property="IsEnabled" Value="True" />
  584. </MultiDataTrigger>
  585. <MultiDataTrigger>
  586. <MultiDataTrigger.Conditions>
  587. <Condition Binding="{Binding IsEnabled}" Value="False" />
  588. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
  589. </MultiDataTrigger.Conditions>
  590. <Setter Property="IsEnabled" Value="False" />
  591. </MultiDataTrigger>
  592. <MultiDataTrigger>
  593. <MultiDataTrigger.Conditions>
  594. <Condition Binding="{Binding IsEnabled}" Value="False" />
  595. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
  596. </MultiDataTrigger.Conditions>
  597. <Setter Property="IsEnabled" Value="False" />
  598. </MultiDataTrigger>
  599. <MultiDataTrigger>
  600. <MultiDataTrigger.Conditions>
  601. <Condition Binding="{Binding IsEnabled}" Value="True" />
  602. <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
  603. </MultiDataTrigger.Conditions>
  604. <Setter Property="IsEnabled" Value="False" />
  605. </MultiDataTrigger>
  606. </Style.Triggers>
  607. </Style>
  608. </Button.Style>
  609. </Button>
  610. <Viewbox
  611. Width="20"
  612. Height="20"
  613. Margin="0,10,0,0"
  614. IsHitTestVisible="False"
  615. Visibility="{Binding IsSaveData, Converter={StaticResource Boolean2VisibilityConverter}}">
  616. <Path
  617. 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"
  618. Fill="Green"
  619. RenderTransformOrigin="0.5,0.5">
  620. <Path.RenderTransform>
  621. <TransformGroup>
  622. <ScaleTransform />
  623. <SkewTransform />
  624. <RotateTransform Angle="0" />
  625. <TranslateTransform />
  626. </TransformGroup>
  627. </Path.RenderTransform>
  628. <Path.Triggers>
  629. <EventTrigger RoutedEvent="Loaded">
  630. <BeginStoryboard>
  631. <Storyboard>
  632. <DoubleAnimation
  633. AutoReverse="False"
  634. RepeatBehavior="Forever"
  635. SpeedRatio="1"
  636. Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"
  637. From="0"
  638. To="360"
  639. Duration="0:0:1" />
  640. </Storyboard>
  641. </BeginStoryboard>
  642. </EventTrigger>
  643. </Path.Triggers>
  644. </Path>
  645. </Viewbox>
  646. </Grid>
  647. <Button
  648. Width="42"
  649. Height="42"
  650. Margin="20,0,0,0"
  651. VerticalAlignment="Center"
  652. hc:IconElement.Geometry="{StaticResource LayoutGeometry}"
  653. Background="{StaticResource TitleBackColor}"
  654. Cursor="Hand"
  655. IsEnabled="{Binding LayoutVisibily}">
  656. <Button.Style>
  657. <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
  658. <Style.Triggers>
  659. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ShakerManger}">
  660. <Setter Property="Visibility" Value="Visible" />
  661. </DataTrigger>
  662. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ConfigManger}">
  663. <Setter Property="Visibility" Value="Collapsed" />
  664. </DataTrigger>
  665. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.DataManger}">
  666. <Setter Property="Visibility" Value="Collapsed" />
  667. </DataTrigger>
  668. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.LogManger}">
  669. <Setter Property="Visibility" Value="Collapsed" />
  670. </DataTrigger>
  671. <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.WarnManger}">
  672. <Setter Property="Visibility" Value="Collapsed" />
  673. </DataTrigger>
  674. </Style.Triggers>
  675. </Style>
  676. </Button.Style>
  677. <hc:Interaction.Triggers>
  678. <hc:EventTrigger EventName="Click">
  679. <hc:SetPropertyAction
  680. PropertyName="IsOpen"
  681. PropertyValue="{x:Static system:Boolean.TrueString}"
  682. TargetObject="{Binding LayoutManger}" />
  683. </hc:EventTrigger>
  684. </hc:Interaction.Triggers>
  685. </Button>
  686. <Button
  687. Width="42"
  688. Height="42"
  689. Margin="20,0,0,0"
  690. VerticalAlignment="Center"
  691. hc:IconElement.Geometry="{StaticResource CloseGeometry}"
  692. Background="{StaticResource TitleBackColor}"
  693. Command="{Binding ExitCommand}"
  694. Cursor="Hand"
  695. Style="{StaticResource ImageButton}"
  696. ToolTip="关闭" />
  697. </StackPanel>
  698. </Grid>
  699. </Border>
  700. <ContentControl
  701. Grid.Row="1"
  702. Grid.ColumnSpan="2"
  703. Margin="4,0,4,0"
  704. Content="{Binding CurrentMainPage.View, Converter={StaticResource Type2ViewConverter}}"
  705. IsEnabled="{Binding IsEnabled}" />
  706. <Popup
  707. AllowsTransparency="True"
  708. IsOpen="{Binding LayoutManger.IsOpen}"
  709. Placement="Mouse"
  710. PopupAnimation="Slide"
  711. StaysOpen="False">
  712. <ContentControl Content="{Binding LayoutManger.View, Converter={StaticResource Type2ViewConverter}}" />
  713. </Popup>
  714. <Popup
  715. Grid.Row="0"
  716. Grid.RowSpan="2"
  717. Grid.ColumnSpan="2"
  718. AllowsTransparency="True"
  719. IsOpen="{Binding Source={StaticResource MainViewModel}, Path=Data.Shakers.SelectedIsOpen}"
  720. Placement="Mouse"
  721. PopupAnimation="Slide"
  722. StaysOpen="False">
  723. <view:ShakerSelectView DataContext="{Binding Source={StaticResource MainViewModel}, Path=Data.Shakers}" />
  724. </Popup>
  725. <Popup
  726. Grid.Row="0"
  727. Grid.RowSpan="2"
  728. Grid.ColumnSpan="2"
  729. AllowsTransparency="True"
  730. IsOpen="{Binding Source={StaticResource ColorPicker}, Path=IsOpen}"
  731. Placement="Mouse"
  732. PopupAnimation="Slide"
  733. StaysOpen="True">
  734. <view:ColorPickerView DataContext="{Binding Source={StaticResource ColorPicker}}" />
  735. </Popup>
  736. <hc:Drawer
  737. Grid.Row="0"
  738. Grid.RowSpan="2"
  739. Grid.ColumnSpan="2"
  740. Dock="Top"
  741. IsOpen="{Binding Source={StaticResource MainViewModel}, Path=Data.SystemConfig.UserPage.ResetPassWord.IsOpen}">
  742. <view:ResetPassWordView />
  743. </hc:Drawer>
  744. <hc:Drawer
  745. Grid.Row="0"
  746. Grid.RowSpan="2"
  747. Grid.ColumnSpan="2"
  748. Dock="Top"
  749. IsOpen="{Binding Source={StaticResource MainViewModel}, Path=Data.SystemConfig.UserPage.AddUserViewModel.IsOpen}">
  750. <view:AddUserView />
  751. </hc:Drawer>
  752. <hc:Drawer
  753. Grid.Row="0"
  754. Grid.RowSpan="2"
  755. Grid.ColumnSpan="2"
  756. Dock="Top"
  757. IsOpen="{Binding Source={x:Static vm:ProgressViewModel.Default}, Path=IsOpen}">
  758. <Border
  759. Width="{x:Static SystemParameters.PrimaryScreenWidth}"
  760. Height="{x:Static SystemParameters.PrimaryScreenHeight}"
  761. Background="#9FAAAAAA">
  762. <view:ProgressView />
  763. </Border>
  764. </hc:Drawer>
  765. <hc:Drawer
  766. Grid.Row="0"
  767. Grid.RowSpan="2"
  768. Grid.ColumnSpan="2"
  769. DataContext="{Binding Source={StaticResource Prompt}, Path=Data}"
  770. Dock="Top"
  771. IsOpen="{Binding IsOpen}">
  772. <Border
  773. Width="{x:Static SystemParameters.PrimaryScreenWidth}"
  774. Height="{x:Static SystemParameters.PrimaryScreenHeight}"
  775. Background="#9FAAAAAA">
  776. <Border
  777. Width="560"
  778. Height="340"
  779. Background="Gray"
  780. CornerRadius="6">
  781. <Grid>
  782. <Grid.RowDefinitions>
  783. <RowDefinition Height="66" />
  784. <RowDefinition Height="2*" />
  785. <RowDefinition Height="*" />
  786. </Grid.RowDefinitions>
  787. <Border
  788. Grid.ColumnSpan="2"
  789. Background="{StaticResource ButtonNomalColor}"
  790. CornerRadius="6,6,0,0">
  791. <TextBlock
  792. HorizontalAlignment="Center"
  793. VerticalAlignment="Center"
  794. FontSize="32"
  795. FontWeight="Bold"
  796. Foreground="White"
  797. Text="{Binding Title}" />
  798. </Border>
  799. <StackPanel
  800. Grid.Row="1"
  801. HorizontalAlignment="Center"
  802. VerticalAlignment="Center"
  803. Orientation="Horizontal">
  804. <Viewbox
  805. Grid.Row="1"
  806. Grid.Column="0"
  807. Width="60"
  808. Height="60"
  809. HorizontalAlignment="Center"
  810. VerticalAlignment="Center"
  811. Visibility="{Binding IconVisibility}">
  812. <Path Data="{Binding IconGeometry, Mode=OneWay}" Fill="{Binding IconBrush}" />
  813. </Viewbox>
  814. <TextBlock
  815. Grid.Row="1"
  816. Grid.Column="1"
  817. MaxWidth="420"
  818. Margin="20"
  819. HorizontalAlignment="Left"
  820. VerticalAlignment="Center"
  821. FontSize="20"
  822. Foreground="White"
  823. Text="{Binding Message}"
  824. TextWrapping="Wrap" />
  825. </StackPanel>
  826. <StackPanel
  827. Grid.Row="2"
  828. Grid.ColumnSpan="2"
  829. HorizontalAlignment="Center"
  830. VerticalAlignment="Center"
  831. Orientation="Horizontal">
  832. <Button
  833. Width="88"
  834. Height="38"
  835. Command="{Binding YesCommand}"
  836. Content="{Binding YesText}"
  837. Cursor="Hand"
  838. FontSize="16"
  839. ToolTip="{Binding YesText}"
  840. Visibility="{Binding YesVisibility}" />
  841. <Button
  842. Width="88"
  843. Height="38"
  844. Margin="40,0,0,0"
  845. Command="{Binding NoCommand}"
  846. Content="{Binding NoText}"
  847. Cursor="Hand"
  848. FontSize="16"
  849. ToolTip="{Binding NoText}"
  850. Visibility="{Binding NoVisibility}" />
  851. </StackPanel>
  852. </Grid>
  853. </Border>
  854. </Border>
  855. </hc:Drawer>
  856. <hc:Drawer
  857. Grid.Row="0"
  858. Grid.RowSpan="2"
  859. Grid.ColumnSpan="2"
  860. Dock="Top"
  861. IsOpen="{Binding Source={StaticResource Login}, Path=Data.IsLoggedIn, Converter={StaticResource Boolean2BooleanReConverter}}">
  862. <Grid
  863. Width="{x:Static SystemParameters.PrimaryScreenWidth}"
  864. Height="{x:Static SystemParameters.PrimaryScreenHeight}"
  865. Background="#9FAAAAAA"
  866. DataContext="{Binding Source={StaticResource Login}, Path=Data}">
  867. <Grid Width="620" Height="440">
  868. <Border
  869. Background="White"
  870. BorderBrush="{StaticResource BorderBrush}"
  871. BorderThickness="1"
  872. CornerRadius="6">
  873. <Border.Effect>
  874. <BlurEffect
  875. KernelType="Box"
  876. Radius="1"
  877. RenderingBias="Quality" />
  878. </Border.Effect>
  879. </Border>
  880. <Grid
  881. Width="400"
  882. Height="420"
  883. Margin="10"
  884. HorizontalAlignment="Center"
  885. VerticalAlignment="Center">
  886. <Grid.RowDefinitions>
  887. <RowDefinition Height="100" />
  888. <RowDefinition />
  889. <RowDefinition />
  890. <RowDefinition Height="32" />
  891. <RowDefinition />
  892. </Grid.RowDefinitions>
  893. <TextBlock
  894. HorizontalAlignment="Center"
  895. VerticalAlignment="Center"
  896. FontSize="42"
  897. Foreground="{StaticResource TitleBrush}"
  898. Text="用户登录" />
  899. <StackPanel
  900. Grid.Row="1"
  901. Height="42"
  902. Orientation="Horizontal">
  903. <TextBlock
  904. HorizontalAlignment="Right"
  905. VerticalAlignment="Center"
  906. FontSize="16"
  907. Text="用户名:" />
  908. <hc:WatermarkTextBox
  909. Width="320"
  910. Height="32"
  911. Margin="10,0,0,0"
  912. VerticalAlignment="Center"
  913. VerticalContentAlignment="Center"
  914. hc:BorderElement.CornerRadius="4"
  915. BorderBrush="{StaticResource BorderBrush}"
  916. BorderThickness="1"
  917. CaretBrush="Black"
  918. FontSize="16"
  919. Foreground="Black"
  920. InputScope="AlphanumericHalfWidth"
  921. MaxLength="20"
  922. Text="{Binding UserName}"
  923. Watermark="输入用户名" />
  924. </StackPanel>
  925. <StackPanel
  926. Grid.Row="2"
  927. Height="42"
  928. Orientation="Horizontal">
  929. <TextBlock
  930. HorizontalAlignment="Right"
  931. VerticalAlignment="Center"
  932. FontSize="16"
  933. Text=" 密码:" />
  934. <hc:PasswordBox
  935. Width="320"
  936. Height="32"
  937. Margin="10,0,0,0"
  938. VerticalAlignment="Center"
  939. VerticalContentAlignment="Center"
  940. hc:InfoElement.Placeholder="输入密码"
  941. Background="Transparent"
  942. BorderBrush="{StaticResource BorderBrush}"
  943. BorderThickness="1"
  944. CaretBrush="Black"
  945. FontSize="16"
  946. Foreground="Black"
  947. IsSafeEnabled="False"
  948. MaxLength="20"
  949. ShowEyeButton="True"
  950. UnsafePassword="{Binding PassWord}">
  951. <hc:PasswordBox.InputBindings>
  952. <KeyBinding Key="Enter" Command="{Binding LoginCommand}" />
  953. </hc:PasswordBox.InputBindings>
  954. </hc:PasswordBox>
  955. </StackPanel>
  956. <TextBlock
  957. Grid.Row="3"
  958. Foreground="Red"
  959. Text="{Binding Message}" />
  960. <StackPanel
  961. Grid.Row="4"
  962. HorizontalAlignment="Center"
  963. VerticalAlignment="Center"
  964. Orientation="Horizontal">
  965. <Button
  966. Width="120"
  967. Height="36"
  968. Command="{Binding LoginCommand}"
  969. Content="登录"
  970. Cursor="Hand"
  971. FontSize="16"
  972. Foreground="Black" />
  973. <Button
  974. Width="120"
  975. Height="36"
  976. Margin="40,0,0,0"
  977. Command="{Binding Source={StaticResource MainViewModel}, Path=Data.ShutDownCommand}"
  978. Content="退出"
  979. Cursor="Hand"
  980. FontSize="16"
  981. Foreground="Black" />
  982. </StackPanel>
  983. </Grid>
  984. </Grid>
  985. <Button
  986. Margin="0,0,10,10"
  987. HorizontalAlignment="Right"
  988. VerticalAlignment="Bottom"
  989. BorderThickness="0"
  990. Command="{Binding Source={StaticResource Login}, Path=Data.AnonymousLoginCommand}"
  991. Content="匿名登录"
  992. FontSize="22"
  993. Foreground="Blue"
  994. ToolTip="匿名登录">
  995. <Button.Style>
  996. <Style TargetType="{x:Type Button}">
  997. <Setter Property="Cursor" Value="Hand" />
  998. <Setter Property="Template">
  999. <Setter.Value>
  1000. <ControlTemplate TargetType="{x:Type Button}">
  1001. <TextBlock
  1002. x:Name="text"
  1003. Text="{TemplateBinding Content}"
  1004. TextDecorations="Underline" />
  1005. <ControlTemplate.Triggers>
  1006. <Trigger Property="IsMouseOver" Value="True">
  1007. <Setter TargetName="text" Property="Foreground" Value="Red" />
  1008. </Trigger>
  1009. </ControlTemplate.Triggers>
  1010. </ControlTemplate>
  1011. </Setter.Value>
  1012. </Setter>
  1013. </Style>
  1014. </Button.Style>
  1015. </Button>
  1016. </Grid>
  1017. </hc:Drawer>
  1018. <hc:Drawer
  1019. Grid.Row="0"
  1020. Grid.RowSpan="2"
  1021. Grid.ColumnSpan="2"
  1022. Dock="Top"
  1023. IsOpen="{Binding Source={StaticResource DeviceControl}, Path=Data}">
  1024. <Grid
  1025. Width="{x:Static SystemParameters.PrimaryScreenWidth}"
  1026. Height="{x:Static SystemParameters.PrimaryScreenHeight}"
  1027. Background="#9FAAAAAA">
  1028. <Border
  1029. Width="1220"
  1030. Height="760"
  1031. Background="{StaticResource SystemItemsSelectBackColor}"
  1032. CornerRadius="6,6,0,0">
  1033. <Grid>
  1034. <Grid.Resources>
  1035. <SolidColorBrush x:Key="forecolor" Color="White" />
  1036. </Grid.Resources>
  1037. <Grid.RowDefinitions>
  1038. <RowDefinition Height="48" />
  1039. <RowDefinition Height="auto" />
  1040. <RowDefinition Height="*" />
  1041. </Grid.RowDefinitions>
  1042. <Grid Grid.Row="1">
  1043. <Grid.ColumnDefinitions>
  1044. <ColumnDefinition />
  1045. </Grid.ColumnDefinitions>
  1046. <GroupBox
  1047. Grid.Row="0"
  1048. Margin="4"
  1049. hc:TitleElement.Background="Transparent"
  1050. hc:TitleElement.MinHeight="36"
  1051. Background="Transparent"
  1052. FontSize="20"
  1053. Foreground="White"
  1054. Header="功放控制"
  1055. Style="{StaticResource GroupBoxTab}">
  1056. <Grid>
  1057. <Grid.RowDefinitions>
  1058. <RowDefinition Height="160" />
  1059. <RowDefinition Height="100" />
  1060. </Grid.RowDefinitions>
  1061. <UniformGrid
  1062. Grid.Column="0"
  1063. Margin="0,10,0,0"
  1064. HorizontalAlignment="Center"
  1065. VerticalAlignment="Top"
  1066. Rows="2">
  1067. <StackPanel Orientation="Horizontal">
  1068. <TextBlock
  1069. VerticalAlignment="Center"
  1070. FontSize="24"
  1071. Foreground="{StaticResource forecolor}"
  1072. Text="增益" />
  1073. <Slider
  1074. Width="440"
  1075. Height="48"
  1076. Margin="10,0,0,0"
  1077. hc:BorderElement.CornerRadius="6,0,0,6"
  1078. Background="Green"
  1079. FontSize="24"
  1080. Foreground="{StaticResource forecolor}"
  1081. IsMoveToPointEnabled="True"
  1082. IsSnapToTickEnabled="True"
  1083. Maximum="100"
  1084. Minimum="0"
  1085. Style="{DynamicResource InputElementBaseStyle}"
  1086. Template="{DynamicResource SliderStyle}"
  1087. Value="{Binding Shakers.Gain}" />
  1088. </StackPanel>
  1089. <StackPanel
  1090. Margin="0,20,0,0"
  1091. HorizontalAlignment="Center"
  1092. Orientation="Horizontal">
  1093. <Button
  1094. Width="180"
  1095. Height="48"
  1096. Command="{Binding Shakers.OpenCommand}"
  1097. Content="打开"
  1098. FontSize="14"
  1099. Foreground="{StaticResource forecolor}"
  1100. ToolTip="打开增益" />
  1101. <Button
  1102. Width="180"
  1103. Height="48"
  1104. Margin="80,0,0,0"
  1105. Command="{Binding Shakers.CloseCommand}"
  1106. Content="关闭"
  1107. FontSize="14"
  1108. Foreground="{StaticResource forecolor}"
  1109. ToolTip="关闭增益" />
  1110. </StackPanel>
  1111. </UniformGrid>
  1112. <UniformGrid Grid.Row="1" Columns="3">
  1113. <UniformGrid.Resources>
  1114. <system:Double x:Key="size">72</system:Double>
  1115. </UniformGrid.Resources>
  1116. <Button
  1117. Width="{StaticResource size}"
  1118. Height="{StaticResource size}"
  1119. hc:IconElement.Geometry="{StaticResource StartGeometry}"
  1120. Command="{Binding Shakers.StartCommand}"
  1121. Foreground="{StaticResource forecolor}"
  1122. Style="{StaticResource ImageButton}"
  1123. ToolTip="打开功放" />
  1124. <Button
  1125. Width="{StaticResource size}"
  1126. Height="{StaticResource size}"
  1127. hc:IconElement.Geometry="{StaticResource StopGeometry}"
  1128. Command="{Binding Shakers.StopCommand}"
  1129. Foreground="{StaticResource forecolor}"
  1130. Style="{StaticResource ImageButton}"
  1131. ToolTip="关闭功放" />
  1132. <Button
  1133. Width="{StaticResource size}"
  1134. Height="{StaticResource size}"
  1135. hc:IconElement.Geometry="{StaticResource ResetGeometry}"
  1136. Command="{Binding Shakers.ResetCommand}"
  1137. Foreground="{StaticResource forecolor}"
  1138. Style="{StaticResource ImageButton}"
  1139. ToolTip="重置功放错误" />
  1140. </UniformGrid>
  1141. </Grid>
  1142. </GroupBox>
  1143. </Grid>
  1144. <Border Background="{StaticResource ButtonNomalColor}" CornerRadius="6,6,0,0">
  1145. <Grid>
  1146. <TextBlock
  1147. HorizontalAlignment="Center"
  1148. VerticalAlignment="Center"
  1149. FontSize="22"
  1150. Foreground="{StaticResource SystemItemsForeColor}"
  1151. Text="设备控制" />
  1152. <Button
  1153. Margin="0,0,10,0"
  1154. HorizontalAlignment="Right"
  1155. VerticalAlignment="Center"
  1156. hc:IconElement.Geometry="{StaticResource CloseGeometry}"
  1157. Style="{StaticResource ImageButton}"
  1158. ToolTip="关闭">
  1159. <hc:Interaction.Triggers>
  1160. <hc:EventTrigger EventName="Click">
  1161. <hc:SetPropertyAction
  1162. PropertyName="Data"
  1163. PropertyValue="{x:Static system:Boolean.FalseString}"
  1164. TargetObject="{Binding Source={StaticResource DeviceControl}}" />
  1165. </hc:EventTrigger>
  1166. </hc:Interaction.Triggers>
  1167. </Button>
  1168. </Grid>
  1169. </Border>
  1170. <Border
  1171. Grid.Row="2"
  1172. Margin="4,0,4,4"
  1173. BorderBrush="Gray"
  1174. BorderThickness="1"
  1175. CornerRadius="6,6,0,0">
  1176. <ListView
  1177. Foreground="{StaticResource NomalForeColor}"
  1178. ItemsSource="{Binding Shakers.Shakers}"
  1179. TextBlock.FontSize="14">
  1180. <ListView.Style>
  1181. <Style TargetType="ListView" BasedOn="{x:Null}">
  1182. <Setter Property="Background" Value="Transparent" />
  1183. <Setter Property="BorderBrush" Value="Transparent" />
  1184. <Setter Property="VerticalContentAlignment" Value="Stretch" />
  1185. <Setter Property="Padding" Value="0" />
  1186. <Setter Property="Template">
  1187. <Setter.Value>
  1188. <ControlTemplate TargetType="ListView">
  1189. <Grid>
  1190. <Grid.RowDefinitions>
  1191. <RowDefinition Height="42" />
  1192. <RowDefinition Height="*" />
  1193. </Grid.RowDefinitions>
  1194. <Border Background="{StaticResource ButtonNomalColor}" CornerRadius="6,6,0,0">
  1195. <Grid>
  1196. <Grid.ColumnDefinitions>
  1197. <ColumnDefinition Width="66" />
  1198. <ColumnDefinition Width="*" />
  1199. </Grid.ColumnDefinitions>
  1200. <TextBlock
  1201. HorizontalAlignment="Center"
  1202. VerticalAlignment="Center"
  1203. Text="启用" />
  1204. <TextBlock
  1205. Grid.Column="1"
  1206. HorizontalAlignment="Center"
  1207. VerticalAlignment="Center"
  1208. Text="振动台" />
  1209. </Grid>
  1210. </Border>
  1211. <hc:ScrollViewer
  1212. Grid.Row="1"
  1213. HorizontalScrollBarVisibility="Hidden"
  1214. VerticalScrollBarVisibility="Auto">
  1215. <ItemsPresenter Margin="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  1216. </hc:ScrollViewer>
  1217. </Grid>
  1218. </ControlTemplate>
  1219. </Setter.Value>
  1220. </Setter>
  1221. <Setter Property="ItemTemplate">
  1222. <Setter.Value>
  1223. <DataTemplate>
  1224. <Grid IsEnabled="{Binding IsConnected}">
  1225. <Grid.ColumnDefinitions>
  1226. <ColumnDefinition Width="66" />
  1227. <ColumnDefinition Width="*" />
  1228. </Grid.ColumnDefinitions>
  1229. <CheckBox
  1230. HorizontalAlignment="Center"
  1231. VerticalAlignment="Center"
  1232. IsChecked="{Binding IsDeviceControl}" />
  1233. <TextBlock
  1234. Grid.Column="1"
  1235. HorizontalAlignment="Center"
  1236. VerticalAlignment="Center"
  1237. Text="{Binding Description}" />
  1238. </Grid>
  1239. </DataTemplate>
  1240. </Setter.Value>
  1241. </Setter>
  1242. <Setter Property="ItemContainerStyle">
  1243. <Setter.Value>
  1244. <Style TargetType="ListViewItem">
  1245. <Setter Property="Background" Value="Transparent" />
  1246. <Setter Property="BorderBrush" Value="Transparent" />
  1247. <Setter Property="BorderThickness" Value="0" />
  1248. <Setter Property="Height" Value="42" />
  1249. <Setter Property="SnapsToDevicePixels" Value="True" />
  1250. <Setter Property="OverridesDefaultStyle" Value="True" />
  1251. <Setter Property="Cursor" Value="Hand" />
  1252. <Setter Property="IsEnabled" Value="True" />
  1253. <Setter Property="Padding" Value="0" />
  1254. <Setter Property="Template">
  1255. <Setter.Value>
  1256. <ControlTemplate TargetType="ListViewItem">
  1257. <ContentPresenter
  1258. Margin="0,0,0,0"
  1259. Content="{TemplateBinding Content}"
  1260. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  1261. ContentTemplate="{TemplateBinding ContentTemplate}"
  1262. ContentTemplateSelector="{x:Null}"
  1263. IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}" />
  1264. </ControlTemplate>
  1265. </Setter.Value>
  1266. </Setter>
  1267. </Style>
  1268. </Setter.Value>
  1269. </Setter>
  1270. <Setter Property="ItemsPanel">
  1271. <Setter.Value>
  1272. <ItemsPanelTemplate>
  1273. <UniformGrid
  1274. Margin="0"
  1275. Columns="1"
  1276. Style="{x:Null}" />
  1277. </ItemsPanelTemplate>
  1278. </Setter.Value>
  1279. </Setter>
  1280. </Style>
  1281. </ListView.Style>
  1282. </ListView>
  1283. </Border>
  1284. </Grid>
  1285. </Border>
  1286. </Grid>
  1287. </hc:Drawer>
  1288. </Grid>
  1289. </Viewbox>
  1290. </Window>