12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379 |
- <Window
- x:Class="ShakerManger.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:data="clr-namespace:ShakerManger.Data"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- xmlns:local="clr-namespace:ShakerManger"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:system="clr-namespace:System;assembly=mscorlib"
- xmlns:view="clr-namespace:ShakerManger.View"
- xmlns:vm="clr-namespace:ShakerManger.ViewModel"
- Title="MainWindow"
- Width="{x:Static SystemParameters.PrimaryScreenWidth}"
- Height="{x:Static SystemParameters.PrimaryScreenHeight}"
- d:DataContext="{d:DesignInstance {x:Type vm:MainWindowViewModel}}"
- Background="{StaticResource MainBrush}"
- BorderThickness="0"
- DataContext="{Binding Source={StaticResource MainViewModel}, Path=Data}"
- FontFamily="{StaticResource FontName}"
- Left="0"
- ResizeMode="NoResize"
- Top="0"
- Topmost="True"
- WindowStartupLocation="Manual"
- WindowState="Normal"
- WindowStyle="None"
- mc:Ignorable="d">
- <Window.Resources>
- <Geometry x:Key="MainGeometry">M0,0 L1920,0 L1920,100 L1680,100 L1610,20 L600,20 L530,100 L0,100Z</Geometry>
- <vm:BindingProxy x:Key="DeviceControl" Data="{x:Static system:Boolean.FalseString}" />
- </Window.Resources>
- <hc:Interaction.Triggers>
- <hc:EventTrigger EventName="Closing">
- <hc:InvokeCommandAction Command="{Binding CloseCommand}" />
- </hc:EventTrigger>
- </hc:Interaction.Triggers>
- <WindowChrome.WindowChrome>
- <WindowChrome
- CaptionHeight="0"
- CornerRadius="0"
- GlassFrameThickness="0"
- ResizeBorderThickness="0" />
- </WindowChrome.WindowChrome>
- <Viewbox Stretch="Fill">
- <Grid Width="1920" Height="1080">
- <Grid.Style>
- <Style TargetType="Grid">
- <Setter Property="IsEnabled">
- <Setter.Value>
- <MultiBinding
- Converter="{StaticResource MainWindowEnabledConverter}"
- ConverterParameter="1"
- Mode="OneWay">
- <Binding
- Mode="OneWay"
- Path="Data.IsOpen"
- Source="{StaticResource Prompt}" />
- <Binding
- Converter="{StaticResource Boolean2BooleanReConverter}"
- Mode="OneWay"
- Path="Data.IsLoggedIn"
- Source="{StaticResource Login}" />
- <Binding
- Mode="OneWay"
- Path="Data"
- Source="{StaticResource DeviceControl}" />
- <Binding
- Mode="OneWay"
- Path="IsOpen"
- Source="{x:Static vm:ProgressViewModel.Default}" />
- </MultiBinding>
- </Setter.Value>
- </Setter>
- </Style>
- </Grid.Style>
- <Grid.RowDefinitions>
- <RowDefinition Height="120" />
- <RowDefinition Height="*" />
- <RowDefinition Height="40" />
- </Grid.RowDefinitions>
- <Rectangle
- Grid.Row="0"
- Grid.RowSpan="3"
- Width="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Grid}, Path=ActualWidth}"
- Height="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Grid}, Path=ActualHeight}"
- Stroke="#9FFF0000"
- StrokeThickness="10"
- Visibility="{Binding SystemConfig.GPIOControl.Level, Converter={StaticResource Boolean2VisibilityConverter}}" />
- <StackPanel
- Grid.Row="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Viewbox HorizontalAlignment="Center" VerticalAlignment="Center">
- <Grid>
- <Grid.Resources>
- <SolidColorBrush x:Key="backcolor" Color="Transparent" />
- <SolidColorBrush x:Key="iconcolor" Color="#1B3566" />
- <SolidColorBrush x:Key="cirquecolor" Color="#2A4369" />
- <SolidColorBrush x:Key="st3" Color="#6A0811" />
- <SolidColorBrush x:Key="textcolor" Color="#090605" />
- </Grid.Resources>
- <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}" />
- <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}" />
- <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}" />
- <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}" />
- <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}" />
- <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}" />
- <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}" />
- <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}" />
- <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}" />
- <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}" />
- <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}" />
- </Grid>
- </Viewbox>
- </StackPanel>
- <Grid>
- <Viewbox Margin="10" Stretch="Fill">
- <Path
- Data="{StaticResource MainGeometry}"
- Stroke="#1F6cd7ea"
- StrokeThickness="1">
- <Path.Effect>
- <DropShadowEffect
- BlurRadius="20"
- Opacity="1"
- ShadowDepth="0"
- Color="{StaticResource LightEmbellishColor}" />
- </Path.Effect>
- </Path>
- </Viewbox>
- <Viewbox Margin="10" Stretch="Fill">
- <hc:AnimationPath
- Data="{StaticResource MainGeometry}"
- Stroke="{StaticResource EmbellishBrush}"
- StrokeThickness="2"
- Duration="0:0:5" />
- </Viewbox>
- <TextBlock
- Margin="20,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="52"
- FontWeight="Bold"
- Foreground="{StaticResource EmbellishBrush}"
- Text="{Binding SystemConfig.SystemPage.MangerTitle}" />
- <ListView
- Height="60"
- Margin="560,40,320,0"
- IsEnabled="{Binding IsEnabled}"
- ItemsSource="{Binding MainPages}"
- SelectedValue="{Binding CurrentMainPage}">
- <ListView.Style>
- <Style TargetType="ListView" BasedOn="{x:Null}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="VerticalContentAlignment" Value="Stretch" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListView">
- <ItemsPresenter Margin="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="ItemTemplate">
- <Setter.Value>
- <DataTemplate>
- <StackPanel
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="Transparent"
- IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
- Orientation="Horizontal">
- <Grid>
- <Viewbox Width="200" Stretch="Fill">
- <Path Data="M70,0 L270,0 L200,70 L00,70Z">
- <Path.Style>
- <Style TargetType="Path">
- <Style.Triggers>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListViewItem}, Path=IsSelected}" Value="True">
- <Setter Property="Fill">
- <Setter.Value>
- <LinearGradientBrush StartPoint="0.45,0" EndPoint="0.55,1">
- <GradientStop Offset="0" Color="{StaticResource EmbellishColor}" />
- <GradientStop Offset="1" Color="#1A7eff" />
- </LinearGradientBrush>
- </Setter.Value>
- </Setter>
- </DataTrigger>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListViewItem}, Path=IsSelected}" Value="False">
- <Setter Property="Fill">
- <Setter.Value>
- <RadialGradientBrush Center="0.5,0.5">
- <GradientStop Color="{StaticResource AuxiliaryColor}" />
- <GradientStop Offset="1" Color="{StaticResource EmbellishColor}" />
- </RadialGradientBrush>
- </Setter.Value>
- </Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Path.Style>
- <Path.Effect>
- <DropShadowEffect
- BlurRadius="20"
- Opacity="1"
- RenderingBias="Quality"
- ShadowDepth="0"
- Color="{StaticResource ButtonEffectColor}" />
- </Path.Effect>
- </Path>
- </Viewbox>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="22"
- Text="{Binding MainPageType, Converter={StaticResource EnumToDescription}}">
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Style.Triggers>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListViewItem}, Path=IsSelected}" Value="True">
- <Setter Property="Foreground" Value="{StaticResource MainBrush}" />
- </DataTrigger>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListViewItem}, Path=IsSelected}" Value="False">
- <Setter Property="Foreground" Value="{StaticResource LableBrush}" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- </Grid>
- </StackPanel>
- </DataTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="ItemContainerStyle">
- <Setter.Value>
- <Style TargetType="ListViewItem">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="OverridesDefaultStyle" Value="True" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="IsEnabled" Value="{Binding IsEnabled}" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListViewItem">
- <ContentPresenter
- Margin="0,0,0,0"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- ContentTemplateSelector="{x:Null}"
- IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="ItemsPanel">
- <Setter.Value>
- <ItemsPanelTemplate>
- <UniformGrid
- Margin="0"
- Rows="1"
- Style="{x:Null}" />
- </ItemsPanelTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ListView.Style>
- </ListView>
- <TextBlock
- Margin="0,20,20,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- FontSize="24"
- Foreground="{StaticResource EmbellishBrush}"
- Text="{Binding NowTime, StringFormat=yyyy-MM-dd HH:mm:ss}" />
- <StackPanel
- Margin="0,0,20,20"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Background="Transparent"
- Orientation="Horizontal">
- <Button
- Width="42"
- Height="42"
- VerticalAlignment="Center"
- hc:IconElement.Geometry="{StaticResource DeviceControlGeometry}"
- Cursor="Hand"
- IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
- Style="{StaticResource ImageButton}"
- ToolTip="设备控制">
- <hc:Interaction.Triggers>
- <hc:EventTrigger EventName="Click">
- <hc:SetPropertyAction
- PropertyName="Data"
- PropertyValue="{x:Static system:Boolean.TrueString}"
- TargetObject="{Binding Source={StaticResource DeviceControl}}" />
- </hc:EventTrigger>
- </hc:Interaction.Triggers>
- </Button>
- <Grid Margin="20,0,0,0">
- <Button
- Width="42"
- Height="42"
- 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"
- Background="Transparent"
- Command="{Binding SaveDataCommand}"
- Cursor="Hand">
- <Button.Style>
- <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
- <Style.Triggers>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled}" Value="True" />
- <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
- </MultiDataTrigger.Conditions>
- <Setter Property="IsEnabled" Value="True" />
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled}" Value="False" />
- <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
- </MultiDataTrigger.Conditions>
- <Setter Property="IsEnabled" Value="False" />
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled}" Value="False" />
- <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
- </MultiDataTrigger.Conditions>
- <Setter Property="IsEnabled" Value="False" />
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled}" Value="True" />
- <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
- </MultiDataTrigger.Conditions>
- <Setter Property="IsEnabled" Value="False" />
- </MultiDataTrigger>
- </Style.Triggers>
- </Style>
- </Button.Style>
- </Button>
- <Viewbox
- Width="20"
- Height="20"
- Margin="0,10,0,0"
- IsHitTestVisible="False"
- Visibility="{Binding IsSaveData, Converter={StaticResource Boolean2VisibilityConverter}}">
- <Path
- 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"
- Fill="Green"
- RenderTransformOrigin="0.5,0.5">
- <Path.RenderTransform>
- <TransformGroup>
- <ScaleTransform />
- <SkewTransform />
- <RotateTransform Angle="0" />
- <TranslateTransform />
- </TransformGroup>
- </Path.RenderTransform>
- <Path.Triggers>
- <EventTrigger RoutedEvent="Loaded">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- AutoReverse="False"
- RepeatBehavior="Forever"
- SpeedRatio="1"
- Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"
- From="0"
- To="360"
- Duration="0:0:1" />
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </Path.Triggers>
- </Path>
- </Viewbox>
- </Grid>
- <Button
- Width="42"
- Height="42"
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- hc:IconElement.Geometry="{StaticResource LayoutGeometry}"
- hc:TitleElement.Foreground="{StaticResource LightEmbellishBrush}"
- Cursor="Hand"
- IsEnabled="{Binding LayoutVisibily}">
- <Button.Style>
- <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
- <Style.Triggers>
- <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ShakerManger}">
- <Setter Property="Visibility" Value="Visible" />
- </DataTrigger>
- <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ConfigManger}">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.DataManger}">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.LogManger}">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.WarnManger}">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Button.Style>
- <hc:Interaction.Triggers>
- <hc:EventTrigger EventName="Click">
- <hc:SetPropertyAction
- PropertyName="IsOpen"
- PropertyValue="{x:Static system:Boolean.TrueString}"
- TargetObject="{Binding LayoutManger}" />
- </hc:EventTrigger>
- </hc:Interaction.Triggers>
- </Button>
- <Button
- Width="42"
- Height="42"
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- hc:IconElement.Geometry="{StaticResource CloseGeometry}"
- hc:TitleElement.Foreground="{StaticResource LightEmbellishBrush}"
- Command="{Binding ExitCommand}"
- Cursor="Hand"
- Style="{StaticResource ImageButton}"
- ToolTip="关闭" />
- </StackPanel>
- </Grid>
- <Border
- Grid.ColumnSpan="2"
- Background="{StaticResource TitleBackColor}"
- Visibility="Collapsed">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="400" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="200" />
- <ColumnDefinition Width="auto" />
- </Grid.ColumnDefinitions>
- <TextBlock
- Margin="20,0,10,0"
- VerticalAlignment="Center"
- FontSize="36"
- FontWeight="Bold"
- Text="{Binding SystemConfig.SystemPage.MangerTitle}" />
- <ListView
- Grid.Column="1"
- Margin="20,0,20,0"
- IsEnabled="{Binding IsEnabled}"
- ItemsSource="{Binding MainPages}"
- SelectedValue="{Binding CurrentMainPage}">
- <ListView.Style>
- <Style TargetType="ListView" BasedOn="{x:Null}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="VerticalContentAlignment" Value="Stretch" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListView">
- <ItemsPresenter Margin="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="ItemTemplate">
- <Setter.Value>
- <DataTemplate>
- <StackPanel
- Margin="0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="Transparent"
- IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
- Orientation="Horizontal">
- <Viewbox
- Width="32"
- Height="32"
- HorizontalAlignment="Right"
- VerticalAlignment="Center">
- <Path Data="{Binding IconPath}" Fill="{StaticResource SystemItemsForeColor}" />
- </Viewbox>
- <TextBlock
- Grid.Column="1"
- Margin="20,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="22"
- Foreground="{StaticResource SystemItemsForeColor}"
- Text="{Binding MainPageType, Converter={StaticResource EnumToDescription}}" />
- </StackPanel>
- </DataTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="ItemContainerStyle">
- <Setter.Value>
- <Style TargetType="ListViewItem">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="OverridesDefaultStyle" Value="True" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="IsEnabled" Value="{Binding IsEnabled}" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListViewItem">
- <Border
- x:Name="backcolor"
- Margin="0"
- Padding="0"
- CornerRadius="12,12,0,0">
- <ContentPresenter
- Margin="0"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- ContentTemplateSelector="{x:Null}"
- IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter TargetName="backcolor" Property="Background" Value="{StaticResource SystemItemsSelectBackColor}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="ItemsPanel">
- <Setter.Value>
- <ItemsPanelTemplate>
- <UniformGrid
- Margin="0"
- Rows="1"
- Style="{x:Null}" />
- </ItemsPanelTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ListView.Style>
- </ListView>
- <UniformGrid Grid.Column="2" Rows="1">
- <Button
- Width="42"
- Height="42"
- Padding="0"
- hc:IconElement.Geometry="{StaticResource StartGeometry}"
- Command="{Binding StartAllCommand}"
- IsEnabled="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
- Style="{StaticResource ImageButton}"
- ToolTip="全部开始" />
- <Button
- Width="42"
- Height="42"
- Padding="0"
- hc:IconElement.Geometry="{StaticResource StopGeometry}"
- Command="{Binding StopAllCommand}"
- IsEnabled="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}"
- Style="{StaticResource ImageButton}"
- ToolTip="全部停止" />
- </UniformGrid>
- <StackPanel
- Grid.Column="3"
- Margin="40,0,10,0"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Grid>
- <Button
- Width="42"
- Height="42"
- 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"
- Command="{Binding SaveDataCommand}"
- Cursor="Hand">
- <Button.Style>
- <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
- <Style.Triggers>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled}" Value="True" />
- <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
- </MultiDataTrigger.Conditions>
- <Setter Property="IsEnabled" Value="True" />
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled}" Value="False" />
- <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="False" />
- </MultiDataTrigger.Conditions>
- <Setter Property="IsEnabled" Value="False" />
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled}" Value="False" />
- <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
- </MultiDataTrigger.Conditions>
- <Setter Property="IsEnabled" Value="False" />
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled}" Value="True" />
- <Condition Binding="{Binding Source={StaticResource Login}, Path=Data.IsAnonymous}" Value="True" />
- </MultiDataTrigger.Conditions>
- <Setter Property="IsEnabled" Value="False" />
- </MultiDataTrigger>
- </Style.Triggers>
- </Style>
- </Button.Style>
- </Button>
- <Viewbox
- Width="20"
- Height="20"
- Margin="0,10,0,0"
- IsHitTestVisible="False"
- Visibility="{Binding IsSaveData, Converter={StaticResource Boolean2VisibilityConverter}}">
- <Path
- 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"
- Fill="Green"
- RenderTransformOrigin="0.5,0.5">
- <Path.RenderTransform>
- <TransformGroup>
- <ScaleTransform />
- <SkewTransform />
- <RotateTransform Angle="0" />
- <TranslateTransform />
- </TransformGroup>
- </Path.RenderTransform>
- <Path.Triggers>
- <EventTrigger RoutedEvent="Loaded">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- AutoReverse="False"
- RepeatBehavior="Forever"
- SpeedRatio="1"
- Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)"
- From="0"
- To="360"
- Duration="0:0:1" />
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </Path.Triggers>
- </Path>
- </Viewbox>
- </Grid>
- <Button
- Width="42"
- Height="42"
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- hc:IconElement.Geometry="{StaticResource LayoutGeometry}"
- Background="{StaticResource TitleBackColor}"
- Cursor="Hand"
- IsEnabled="{Binding LayoutVisibily}">
- <Button.Style>
- <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
- <Style.Triggers>
- <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ShakerManger}">
- <Setter Property="Visibility" Value="Visible" />
- </DataTrigger>
- <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.ConfigManger}">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.DataManger}">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.LogManger}">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- <DataTrigger Binding="{Binding CurrentMainPage.MainPageType}" Value="{x:Static data:MainPageType.WarnManger}">
- <Setter Property="Visibility" Value="Collapsed" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Button.Style>
- <hc:Interaction.Triggers>
- <hc:EventTrigger EventName="Click">
- <hc:SetPropertyAction
- PropertyName="IsOpen"
- PropertyValue="{x:Static system:Boolean.TrueString}"
- TargetObject="{Binding LayoutManger}" />
- </hc:EventTrigger>
- </hc:Interaction.Triggers>
- </Button>
- <Button
- Width="42"
- Height="42"
- Margin="20,0,0,0"
- VerticalAlignment="Center"
- hc:IconElement.Geometry="{StaticResource CloseGeometry}"
- Background="{StaticResource TitleBackColor}"
- Command="{Binding ExitCommand}"
- Cursor="Hand"
- Style="{StaticResource ImageButton}"
- ToolTip="关闭" />
- </StackPanel>
- </Grid>
- </Border>
- <ContentControl
- Grid.Row="1"
- Grid.ColumnSpan="2"
- Margin="4,0,4,0"
- Content="{Binding CurrentMainPage.View, Converter={StaticResource Type2ViewConverter}}"
- IsEnabled="{Binding IsEnabled}" />
- <Popup
- AllowsTransparency="True"
- IsOpen="{Binding LayoutManger.IsOpen}"
- Placement="Mouse"
- PopupAnimation="Slide"
- StaysOpen="False">
- <ContentControl Content="{Binding LayoutManger.View, Converter={StaticResource Type2ViewConverter}}" />
- </Popup>
- <Popup
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- AllowsTransparency="True"
- IsOpen="{Binding Source={StaticResource MainViewModel}, Path=Data.Shakers.SelectedIsOpen}"
- Placement="Mouse"
- PopupAnimation="Slide"
- StaysOpen="False">
- <view:ShakerSelectView DataContext="{Binding Source={StaticResource MainViewModel}, Path=Data.Shakers}" />
- </Popup>
- <Popup
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- AllowsTransparency="True"
- IsOpen="{Binding Source={StaticResource ColorPicker}, Path=IsOpen}"
- Placement="Mouse"
- PopupAnimation="Slide"
- StaysOpen="True">
- <view:ColorPickerView DataContext="{Binding Source={StaticResource ColorPicker}}" />
- </Popup>
- <hc:Drawer
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- Dock="Top"
- IsOpen="{Binding Source={StaticResource MainViewModel}, Path=Data.SystemConfig.UserPage.ResetPassWord.IsOpen}">
- <view:ResetPassWordView />
- </hc:Drawer>
- <hc:Drawer
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- Dock="Top"
- IsOpen="{Binding Source={StaticResource MainViewModel}, Path=Data.SystemConfig.UserPage.AddUserViewModel.IsOpen}">
- <view:AddUserView />
- </hc:Drawer>
- <hc:Drawer
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- Dock="Top"
- IsOpen="{Binding Source={x:Static vm:ProgressViewModel.Default}, Path=IsOpen}">
- <Border
- Width="{x:Static SystemParameters.PrimaryScreenWidth}"
- Height="{x:Static SystemParameters.PrimaryScreenHeight}"
- Background="#9FAAAAAA">
- <view:ProgressView />
- </Border>
- </hc:Drawer>
- <hc:Drawer
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- DataContext="{Binding Source={StaticResource Prompt}, Path=Data}"
- Dock="Top"
- IsOpen="{Binding IsOpen}">
- <Border
- Width="{x:Static SystemParameters.PrimaryScreenWidth}"
- Height="{x:Static SystemParameters.PrimaryScreenHeight}"
- Background="#9FAAAAAA">
- <Border
- Width="560"
- Height="340"
- Background="{StaticResource MainBrush}"
- BorderBrush="{StaticResource AuxiliaryBrush}"
- BorderThickness="1"
- CornerRadius="6">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="66" />
- <RowDefinition Height="2*" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border
- Grid.ColumnSpan="2"
- Background="{StaticResource EmbellishBrush}"
- CornerRadius="6,6,0,0">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="32"
- FontWeight="Bold"
- Foreground="{StaticResource MainBrush}"
- Text="{Binding Title}" />
- </Border>
- <StackPanel
- Grid.Row="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Viewbox
- Grid.Row="1"
- Grid.Column="0"
- Width="60"
- Height="60"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Visibility="{Binding IconVisibility}">
- <Path Data="{Binding IconGeometry, Mode=OneWay}" Fill="{Binding IconBrush}" />
- </Viewbox>
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- MaxWidth="420"
- Margin="20"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="20"
- Text="{Binding Message}"
- TextWrapping="Wrap" />
- </StackPanel>
- <StackPanel
- Grid.Row="2"
- Grid.ColumnSpan="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button
- Width="88"
- Height="38"
- hc:IconElement.Geometry="{StaticResource YesGeometry}"
- hc:IconElement.Height="20"
- hc:IconElement.Width="20"
- BorderBrush="Green"
- Command="{Binding YesCommand}"
- Content="{Binding YesText}"
- Cursor="Hand"
- FontSize="16"
- Foreground="Green"
- Style="{StaticResource HasIconButton}"
- ToolTip="{Binding YesText}"
- Visibility="{Binding YesVisibility}" />
- <Button
- Width="88"
- Height="38"
- Margin="40,0,0,0"
- hc:IconElement.Geometry="{StaticResource NoGeometry}"
- hc:IconElement.Height="20"
- hc:IconElement.Width="20"
- BorderBrush="Red"
- Command="{Binding NoCommand}"
- Content="{Binding NoText}"
- Cursor="Hand"
- FontSize="16"
- Foreground="Red"
- Style="{StaticResource HasIconButton}"
- ToolTip="{Binding NoText}"
- Visibility="{Binding NoVisibility}" />
- </StackPanel>
- </Grid>
- </Border>
- </Border>
- </hc:Drawer>
- <hc:Drawer
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- Dock="Top"
- IsOpen="{Binding Source={StaticResource Login}, Path=Data.IsLoggedIn, Converter={StaticResource Boolean2BooleanReConverter}}">
- <Grid
- Width="{x:Static SystemParameters.PrimaryScreenWidth}"
- Height="{x:Static SystemParameters.PrimaryScreenHeight}"
- Background="#9FAAAAAA"
- DataContext="{Binding Source={StaticResource Login}, Path=Data}">
- <Grid Width="620" Height="440">
- <Border
- Background="{StaticResource AuxiliaryBrush}"
- BorderBrush="{StaticResource EmbellishBrush}"
- BorderThickness="1"
- CornerRadius="6">
- <Border.Effect>
- <BlurEffect
- KernelType="Box"
- Radius="1"
- RenderingBias="Quality" />
- </Border.Effect>
- </Border>
- <Grid
- Width="400"
- Height="420"
- Margin="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center">
- <Grid.RowDefinitions>
- <RowDefinition Height="100" />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition Height="32" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="42"
- Foreground="{StaticResource EmbellishBrush}"
- Text="用户登录" />
- <StackPanel
- Grid.Row="1"
- Height="42"
- Orientation="Horizontal">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="{StaticResource LableBrush}"
- Text="用户名:" />
- <hc:WatermarkTextBox
- Width="320"
- Height="32"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- VerticalContentAlignment="Center"
- hc:BorderElement.CornerRadius="4"
- BorderBrush="{StaticResource BorderBrush}"
- BorderThickness="1"
- CaretBrush="{StaticResource LableBrush}"
- FontSize="16"
- Foreground="{StaticResource LableBrush}"
- InputScope="AlphanumericHalfWidth"
- MaxLength="20"
- Text="{Binding UserName}"
- Watermark="输入用户名" />
- </StackPanel>
- <StackPanel
- Grid.Row="2"
- Height="42"
- Orientation="Horizontal">
- <TextBlock
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontSize="16"
- Text=" 密码:" />
- <hc:PasswordBox
- Width="320"
- Height="32"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- VerticalContentAlignment="Center"
- hc:InfoElement.Placeholder="输入密码"
- Background="Transparent"
- BorderBrush="{StaticResource BorderBrush}"
- BorderThickness="1"
- CaretBrush="Black"
- FontSize="16"
- Foreground="Black"
- IsSafeEnabled="False"
- MaxLength="20"
- ShowEyeButton="True"
- UnsafePassword="{Binding PassWord}">
- <hc:PasswordBox.InputBindings>
- <KeyBinding Key="Enter" Command="{Binding LoginCommand}" />
- </hc:PasswordBox.InputBindings>
- </hc:PasswordBox>
- </StackPanel>
- <TextBlock
- Grid.Row="3"
- Foreground="Red"
- Text="{Binding Message}" />
- <StackPanel
- Grid.Row="4"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Button
- Width="120"
- Height="36"
- hc:IconElement.Geometry="{StaticResource LoginGeometry}"
- hc:IconElement.Height="20"
- hc:IconElement.Width="20"
- Command="{Binding LoginCommand}"
- Content="登录"
- Cursor="Hand"
- FontSize="16"
- Style="{StaticResource HasIconButton}" />
- <Button
- Width="120"
- Height="36"
- Margin="40,0,0,0"
- hc:IconElement.Geometry="{StaticResource ExitGeometry}"
- hc:IconElement.Height="20"
- hc:IconElement.Width="20"
- Command="{Binding Source={StaticResource MainViewModel}, Path=Data.ShutDownCommand}"
- Content="退出"
- Cursor="Hand"
- FontSize="16"
- BorderBrush="Red"
- Foreground="Red"
- Style="{StaticResource HasIconButton}" />
- </StackPanel>
- </Grid>
- </Grid>
- <Button
- Margin="0,0,10,10"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- BorderThickness="0"
- Command="{Binding Source={StaticResource Login}, Path=Data.AnonymousLoginCommand}"
- Content="匿名登录"
- FontSize="22"
- Foreground="{StaticResource EmbellishBrush}"
- ToolTip="匿名登录">
- <Button.Style>
- <Style TargetType="{x:Type Button}">
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <TextBlock
- x:Name="text"
- Text="{TemplateBinding Content}"
- TextDecorations="Underline" />
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="text" Property="Foreground" Value="{DynamicResource LightEmbellishBrush}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Button.Style>
- </Button>
- </Grid>
- </hc:Drawer>
- <hc:Drawer
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- Dock="Top"
- IsOpen="{Binding Source={StaticResource DeviceControl}, Path=Data}">
- <Grid
- Width="{x:Static SystemParameters.PrimaryScreenWidth}"
- Height="{x:Static SystemParameters.PrimaryScreenHeight}"
- Background="#9FAAAAAA">
- <Border
- Width="760"
- Height="760"
- Background="{StaticResource MainBrush}"
- BorderBrush="{StaticResource AuxiliaryBrush}"
- BorderThickness="1"
- CornerRadius="6,6,0,0">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="48" />
- <RowDefinition Height="auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <GroupBox
- Grid.Row="0"
- Margin="4"
- hc:TitleElement.Background="{StaticResource EmbellishBrush}"
- hc:TitleElement.MinHeight="36"
- Background="Transparent"
- FontSize="20"
- Foreground="{StaticResource MainBrush}"
- Header="功放控制"
- Style="{StaticResource GroupBoxTab}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="160" />
- <RowDefinition Height="100" />
- </Grid.RowDefinitions>
- <UniformGrid
- Grid.Column="0"
- Margin="0,10,0,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- Rows="2">
- <StackPanel Orientation="Horizontal">
- <TextBlock
- VerticalAlignment="Center"
- FontSize="24"
- Foreground="{StaticResource LableBrush}"
- Text="增益" />
- <Slider
- Width="440"
- Height="48"
- Margin="10,0,0,0"
- hc:BorderElement.CornerRadius="6,0,0,6"
- Background="Green"
- FontSize="24"
- Foreground="{StaticResource LableBrush}"
- IsMoveToPointEnabled="True"
- IsSnapToTickEnabled="True"
- Maximum="100"
- Minimum="0"
- Style="{DynamicResource InputElementBaseStyle}"
- Template="{DynamicResource SliderStyle}"
- Value="{Binding Shakers.Gain}" />
- </StackPanel>
- <StackPanel
- Margin="0,20,0,0"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <Button
- Width="180"
- Height="48"
- hc:IconElement.Geometry="{StaticResource StartGeometry}"
- hc:IconElement.Height="28"
- hc:IconElement.Width="28"
- Command="{Binding Shakers.OpenCommand}"
- Content="打开增益"
- FontSize="16"
- Style="{StaticResource HasIconButton}"
- ToolTip="打开增益" />
- <Button
- Width="180"
- Height="48"
- Margin="80,0,0,0"
- hc:IconElement.Geometry="{StaticResource StopGeometry}"
- hc:IconElement.Height="28"
- hc:IconElement.Width="28"
- Command="{Binding Shakers.CloseCommand}"
- Content="关闭增益"
- FontSize="16"
- Style="{StaticResource HasIconButton}"
- ToolTip="关闭增益" />
- </StackPanel>
- </UniformGrid>
- <UniformGrid Grid.Row="1" Columns="3">
- <UniformGrid.Resources>
- <system:Double x:Key="size">72</system:Double>
- </UniformGrid.Resources>
- <Button
- Width="{StaticResource size}"
- Height="{StaticResource size}"
- hc:IconElement.Geometry="{StaticResource StartGeometry}"
- Command="{Binding Shakers.StartCommand}"
- Style="{StaticResource ImageButton}"
- ToolTip="打开功放" />
- <Button
- Width="{StaticResource size}"
- Height="{StaticResource size}"
- hc:IconElement.Geometry="{StaticResource StopGeometry}"
- Command="{Binding Shakers.StopCommand}"
- Style="{StaticResource ImageButton}"
- ToolTip="关闭功放" />
- <Button
- Width="{StaticResource size}"
- Height="{StaticResource size}"
- hc:IconElement.Geometry="{StaticResource ResetGeometry}"
- Command="{Binding Shakers.ResetCommand}"
- Style="{StaticResource ImageButton}"
- ToolTip="重置功放错误" />
- </UniformGrid>
- </Grid>
- </GroupBox>
- </Grid>
- <Border Background="{StaticResource EmbellishBrush}" CornerRadius="6,6,0,0">
- <Grid>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="22"
- Foreground="{StaticResource MainBrush}"
- Text="设备控制" />
- <Button
- Margin="0,0,10,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- hc:IconElement.Geometry="{StaticResource CloseGeometry}"
- ToolTip="关闭">
- <Button.Style>
- <Style TargetType="Button" BasedOn="{StaticResource ImageButton}">
- <Setter Property="Foreground" Value="{StaticResource MainBrush}" />
- </Style>
- </Button.Style>
- <hc:Interaction.Triggers>
- <hc:EventTrigger EventName="Click">
- <hc:SetPropertyAction
- PropertyName="Data"
- PropertyValue="{x:Static system:Boolean.FalseString}"
- TargetObject="{Binding Source={StaticResource DeviceControl}}" />
- </hc:EventTrigger>
- </hc:Interaction.Triggers>
- </Button>
- </Grid>
- </Border>
- <Border
- Grid.Row="2"
- Margin="4,0,4,4"
- BorderBrush="{StaticResource AuxiliaryBrush}"
- BorderThickness="1"
- CornerRadius="6,6,0,0">
- <ListView
- Foreground="{StaticResource LableBrush}"
- ItemsSource="{Binding Shakers.Shakers}"
- TextBlock.FontSize="14">
- <ListView.Style>
- <Style TargetType="ListView" BasedOn="{x:Null}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="VerticalContentAlignment" Value="Stretch" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListView">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="42" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Background="{StaticResource EmbellishBrush}" CornerRadius="6,6,0,0">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="68" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Foreground="{StaticResource MainBrush}"
- Text="启用" />
- <TextBlock
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Foreground="{StaticResource MainBrush}"
- Text="振动台" />
- </Grid>
- </Border>
- <hc:ScrollViewer
- Grid.Row="1"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Auto">
- <ItemsPresenter Margin="0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </hc:ScrollViewer>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="ItemTemplate">
- <Setter.Value>
- <DataTemplate>
- <Grid IsEnabled="{Binding IsConnected}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="68" />
- <ColumnDefinition Width="680" />
- </Grid.ColumnDefinitions>
- <Line
- Grid.ColumnSpan="2"
- VerticalAlignment="Bottom"
- Stroke="{StaticResource AuxiliaryBrush}"
- StrokeThickness="1"
- X1="0"
- X2="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Grid}, Path=ActualWidth}"
- Y1="0"
- Y2="0" />
- <CheckBox
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- IsChecked="{Binding IsDeviceControl}" />
- <TextBlock
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Text="{Binding Description}">
- <hc:Interaction.Triggers>
- <hc:EventTrigger EventName="MouseUp">
- <hc:SetPropertyAction
- PropertyName="IsDeviceControl"
- PropertyValue="{Binding IsDeviceControl, Converter={StaticResource Boolean2BooleanReConverter}}"
- TargetObject="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=TextBlock}, Path=DataContext}" />
- </hc:EventTrigger>
- </hc:Interaction.Triggers>
- <TextBlock.Style>
- <Style TargetType="TextBlock">
- <Style.Triggers>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Foreground" Value="{StaticResource TextInfoBrush}" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </TextBlock.Style>
- </TextBlock>
- </Grid>
- </DataTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="ItemContainerStyle">
- <Setter.Value>
- <Style TargetType="ListViewItem">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Height" Value="42" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="OverridesDefaultStyle" Value="True" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="IsEnabled" Value="True" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ListViewItem">
- <ContentPresenter
- Margin="0,0,0,0"
- Content="{TemplateBinding Content}"
- ContentStringFormat="{TemplateBinding ContentStringFormat}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- ContentTemplateSelector="{x:Null}"
- IsEnabled="{Binding Source={x:Static vm:LoginViewModel.Default}, Path=IsAnonymous, Converter={StaticResource Boolean2BooleanReConverter}}" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="ItemsPanel">
- <Setter.Value>
- <ItemsPanelTemplate>
- <UniformGrid
- Margin="0"
- Columns="1"
- Style="{x:Null}" />
- </ItemsPanelTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ListView.Style>
- </ListView>
- </Border>
- </Grid>
- </Border>
- </Grid>
- </hc:Drawer>
- </Grid>
- </Viewbox>
- </Window>
|