|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055 |
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero">
-
- <!--#region Color-->
- <SolidColorBrush x:Key="foreground" Color="#a2c2e8" />
- <SolidColorBrush x:Key="borderBrush" Color="#FF074B92" />
- <SolidColorBrush x:Key="Titleforeground" Color="#FF07D7FF" />
- <SolidColorBrush x:Key="DataGridColumnHeaderColor" Color="#00c2f4" />
- <SolidColorBrush x:Key="LabelColor" Color="#FF00EEF3" />
- <SolidColorBrush x:Key="MainTitleforeground" Color="#feffff" />
- <SolidColorBrush x:Key="ButtonSelectForeground" Color="#4fade8" />
- <SolidColorBrush x:Key="ButtonUnSelectForeground" Color="#3afdff" />
- <SolidColorBrush x:Key="MeunSelectForeground" Color="#8f723c" />
- <SolidColorBrush x:Key="MeunUnSelectForeground" Color="White" />
-
- <!--<SolidColorBrush x:Key="foreground" Color="Red" />
- <SolidColorBrush x:Key="borderBrush" Color="Red" />
- <SolidColorBrush x:Key="Titleforeground" Color="Red" />
- <SolidColorBrush x:Key="LabelColor" Color="Red" />
- <SolidColorBrush x:Key="DataGridColumnHeaderColor" Color="Red"/>
- <SolidColorBrush x:Key="MainTitleforeground" Color="Red"/>
- <SolidColorBrush x:Key="ButtonSelectForeground" Color="Red"/>
- <SolidColorBrush x:Key="ButtonUnSelectForeground" Color="Red"/>
- <SolidColorBrush x:Key="MeunSelectForeground" Color="Red"/>
- <SolidColorBrush x:Key="MeunUnSelectForeground" Color="Red"/>-->
- <!--#endregion-->
-
- <!--#region Label-->
- <Style TargetType="{x:Type Label}">
- <Setter Property="Foreground" Value="{DynamicResource LabelColor}" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Padding" Value="5" />
- <Setter Property="HorizontalContentAlignment" Value="Left" />
- <Setter Property="VerticalContentAlignment" Value="Top" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Label}">
- <Border
- Padding="{TemplateBinding Padding}"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="true">
- <ContentPresenter
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <!--#region ToggleButton-->
- <Style x:Key="StatusBtnStyle告警" TargetType="ToggleButton">
- <Style.Setters>
- <Setter Property="Width" Value="30" />
- <Setter Property="Height" Value="19" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="IsChecked" Value="{Binding IsCheck, Mode=TwoWay}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ToggleButton">
- <Grid Cursor="Hand">
- <Border
- x:Name="bd1"
- Width="25"
- Height="13"
- Margin="0,-10,-5,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Panel.ZIndex="100"
- Background="#2600CAFF"
- CornerRadius="3"
- Cursor="Hand"
- Visibility="Collapsed">
- <TextBlock
- HorizontalAlignment="Center"
- FontSize="8"
- Foreground="#FF00E6F7"
- Text="{Binding ListNum, Mode=TwoWay}" />
- <!-- -->
- </Border>
- <Image
- x:Name="image1"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Panel.ZIndex="0"
- RenderOptions.BitmapScalingMode="HighQuality"
- SnapsToDevicePixels="True"
- Source="/BPASmartClient.CustomResource;component/Image/告警/无告警.png"
- UseLayoutRounding="True" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/严重告警.png" />
- <Setter TargetName="bd1" Property="Visibility" Value="Visible" />
- </Trigger>
- <Trigger Property="IsChecked" Value="False">
- <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/无告警.png" />
- <Setter TargetName="bd1" Property="Visibility" Value="Collapsed" />
- </Trigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsCheck}" Value="true" />
- <Condition Binding="{Binding IsAlarm}" Value="true" />
- </MultiDataTrigger.Conditions>
- <MultiDataTrigger.Setters>
- <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/严重告警.png" />
- <Setter TargetName="bd1" Property="Visibility" Value="Visible" />
- </MultiDataTrigger.Setters>
- </MultiDataTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="StatusBtnStyle网络连接状态" TargetType="ToggleButton">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="IsChecked" Value="{Binding IsCheck, Mode=TwoWay}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="ToggleButton">
- <Grid Cursor="Hand">
- <Image
- x:Name="image1"
- Width="{TemplateBinding Width}"
- Height="{TemplateBinding Height}"
- Panel.ZIndex="0"
- RenderOptions.BitmapScalingMode="HighQuality"
- SnapsToDevicePixels="True"
- Source="/BPASmartClient.CustomResource;component/Image/告警/Wifi_NO.png"
- UseLayoutRounding="True" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/Wifi_OK.png" />
- </Trigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsCheck}" Value="true" />
- <Condition Binding="{Binding IsAlarm}" Value="true" />
- </MultiDataTrigger.Conditions>
- <MultiDataTrigger.Setters>
- <Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/Wifi_OK.png" />
- </MultiDataTrigger.Setters>
- </MultiDataTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <!--#endregion-->
-
- <!--#region Image-->
- <ImageBrush x:Key="imageBJ" ImageSource="/BPASmartClient.CustomResource;component/Image/图层1.png" />
- <ImageBrush x:Key="image1" ImageSource="/BPASmartClient.CustomResource;component/Image/shape.png" />
- <ImageBrush x:Key="image2" ImageSource="/BPASmartClient.CustomResource;component/Image/shape1.png" />
- <Style x:Key="image完成" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/Cb_Checked.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image墙" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/AGV/墙.png" />
- </Style.Setters>
- </Style>
-
- <Style TargetType="Image">
- <Style.Setters>
- <Setter Property="UseLayoutRounding" Value="True" />
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_工艺流程" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/工艺流程.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_维护" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Height" Value="22" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_功能列表" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Height" Value="22" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/功能列表.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_产品制作" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Height" Value="22" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_L" TargetType="Image">
- <Style.Setters>
- <Setter Property="Height" Value="80" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_Title" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="250" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/自动化产线上位机控制系统.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop_矩形" TargetType="Image">
- <Style.Setters>
-
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetop1" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image营销额" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Bottom" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/营销额.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="imagetitletext" TargetType="Image">
- <Style.Setters>
- <Setter Property="Height" Value="20" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/titletext.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image圆角矩形" TargetType="Image">
- <Style.Setters>
- <Setter Property="Height" Value="33" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/圆角矩形 4.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image黑菠萝科技" TargetType="Image">
- <Style.Setters>
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="Height" Value="24" />
- <Setter Property="Width" Value="70" />
- <Setter Property="VerticalAlignment" Value="Bottom" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/黑菠萝科技.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="MainBJ" TargetType="Image">
- <Style.Setters>
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/背景图片.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="TitleImage" TargetType="Image">
- <Style.Setters>
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/hbl.ico" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="timeImage" TargetType="Image">
- <Style.Setters>
- <Setter Property="Width" Value="20" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/日期1.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image文字" TargetType="Image">
- <Style.Setters>
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/文字.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image底部科技背景" TargetType="Image">
- <Style.Setters>
- <Setter Property="VerticalAlignment" Value="Bottom" />
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/底部背景.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image个人信息" TargetType="Image">
- <Style.Setters>
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/个人信息.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image维护" TargetType="Image">
- <Style.Setters>
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/维护.png" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="image标题其他" TargetType="Image">
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/顶部矩形.png" />
- <Setter Property="Height" Value="12" />
- </Style>
-
- <Style x:Key="image告警" TargetType="Image">
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警.png" />
- <Setter Property="Height" Value="24" />
- </Style>
-
- <Style x:Key="image有告警" TargetType="Image">
-
- <Setter Property="Source" Value="/BPASmartClient.CustomResource;component/Image/有告警.png" />
- <Setter Property="Height" Value="30" />
-
- </Style>
- <!--#endregion-->
-
- <!--#region Border-->
- <Style x:Key="border车" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="80"/>
- <Setter Property="Width" Value="80"/>
- <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
- <Setter Property="RenderTransform" >
- <Setter.Value>
- <TransformGroup>
- <ScaleTransform ScaleY="-0.6" ScaleX="0.8"/>
- <SkewTransform AngleY="0"/>
- <RotateTransform Angle="180"/>
- <TranslateTransform X="1" Y="0.5"/>
- </TransformGroup>
- </Setter.Value>
- </Setter>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/agv.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border停车位" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="80"/>
- <Setter Property="Width" Value="80"/>
- <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
- <Setter Property="RenderTransform" >
- <Setter.Value>
- <TransformGroup>
- <ScaleTransform/>
- <SkewTransform AngleY="20"/>
- <RotateTransform/>
- <TranslateTransform/>
- </TransformGroup>
- </Setter.Value>
- </Setter>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/停车位.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border充电桩" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="60"/>
- <Setter Property="Width" Value="60"/>
- <Setter Property="Margin" Value="0,20,0,0"/>
- <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
- <Setter Property="RenderTransform" >
- <Setter.Value>
- <TransformGroup>
- <ScaleTransform/>
- <SkewTransform AngleY="20"/>
- <RotateTransform/>
- <TranslateTransform/>
- </TransformGroup>
- </Setter.Value>
- </Setter>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/充电桩.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
-
- <Style x:Key="border炒锅" TargetType="Border">
- <Style.Setters>
- <Setter Property="Margin" Value="60,0,0,20"/>
- <Setter Property="Height" Value="80"/>
- <Setter Property="Width" Value="80"/>
- <Setter Property="VerticalAlignment" Value="Bottom"/>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/炒锅.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border炒锅2" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="100"/>
- <Setter Property="Width" Value="100"/>
- <Setter Property="VerticalAlignment" Value="Bottom"/>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/炒锅2.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border碗" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="80"/>
- <Setter Property="Width" Value="40"/>
- <Setter Property="Margin" Value="0,-20,0,-20"/>
- <Setter Property="VerticalAlignment" Value="Bottom"/>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/汤碗.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border菜" TargetType="Border">
- <Style.Setters>
- <Setter Property="Margin" Value="0,-17,0,0"/>
- <Setter Property="Height" Value="30"/>
- <Setter Property="Width" Value="35"/>
- <Setter Property="VerticalAlignment" Value="Top"/>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/蔬菜.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border垂直墙" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png" Viewport="0, 0, 1, 0.03" TileMode="FlipY" Stretch="UniformToFill" ViewportUnits="RelativeToBoundingBox" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border水平墙" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png" Viewport="0, 0, 0.02, 1" TileMode="FlipY" Stretch="UniformToFill" ViewportUnits="RelativeToBoundingBox" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border垂直墙1" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png" Viewport="0, 0, 1, 0.1" TileMode="FlipY" Stretch="UniformToFill" ViewportUnits="RelativeToBoundingBox" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border水平墙1" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/AGV/砖块.png" Viewport="0, 0, 0.1, 1" TileMode="FlipY" Stretch="UniformToFill" ViewportUnits="RelativeToBoundingBox" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="FromBJ" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/窗体背景.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="button_no" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_No.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="button_select" TargetType="Border">
- <Style.Setters>
-
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Button_Select.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="bordertopL" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="80" />
- <Setter Property="Width" Value="300" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
-
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/Top_L.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border阴影边框" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="50" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border阴影边框扩展" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/阴影边框.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border边角" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边角.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="bordertop矩形" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/顶部矩形.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="bordertopTitle" TargetType="Border">
- <Style.Setters>
- <Setter Property="Height" Value="100" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/topTitle.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="borderFromTitle" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/tittle.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景1" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景1.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景2" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景2.png" Stretch="Uniform" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="borderPop_bg" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border背景two" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景2.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景3" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush
- ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景3.png"
- Opacity="1"
- Stretch="Fill"
- TileMode="FlipX"
- Viewbox="0,0,1,1"
- ViewboxUnits="RelativeToBoundingBox" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景4" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景4.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景5" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景5.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景6" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景6.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border窗体背景7" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/窗体背景7.png" Stretch="None" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border圆角矩形" TargetType="Border">
- <Style.Setters>
- <Setter Property="BorderThickness" Value="3" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/圆角矩形.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border不规则矩形" TargetType="Border">
- <Style.Setters>
- <Setter Property="BorderThickness" Value="0.5" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/不规则矩形.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border矩形" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border顶部背景" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部背景.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="BorderBrush">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="BorderThickness" Value="0,0,0,1" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="border标题背景" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/标题背景.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border主窗体背景" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border界面背景" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/窗体背景2.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border顶部标题背景" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border竖线" TargetType="Border">
- <Style.Setters>
- <Setter Property="Width" Value="1" />
- <Setter Property="Height" Value="40" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Margin" Value="5" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/竖线.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border内部" TargetType="Border">
- <Style.Setters>
- <Setter Property="Width" Value="320" />
-
- <Setter Property="HorizontalAlignment" Value="Stretch" />
- <Setter Property="VerticalAlignment" Value="Stretch" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Margin" Value="5" />
-
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/内部.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border矩形2" TargetType="Border">
- <Style.Setters>
- <Setter Property="Margin" Value="0,0,10,0" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Width" Value="92" />
- <Setter Property="Height" Value="46" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形1.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border矢量智能对象" TargetType="Border">
- <Style.Setters>
- <Setter Property="Width" Value="1" />
- <Setter Property="Height" Value="40" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Margin" Value="5" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景矢量/矢量智能对象.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border边框" TargetType="Border">
- <Style.Setters>
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形样式.png" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border边框2" TargetType="Border">
- <Style.Setters>
-
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/边框效果2.png" Stretch="Fill" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border右下" TargetType="Border">
- <Style.Setters>
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="VerticalAlignment" Value="Bottom" />
- <Setter Property="Height" Value="23" />
- <Setter Property="Width" Value="22" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右下.png" Stretch="None" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border左下" TargetType="Border">
- <Style.Setters>
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Bottom" />
- <Setter Property="Height" Value="22" />
- <Setter Property="Width" Value="23" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左下.png" Stretch="None" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border左上" TargetType="Border">
- <Style.Setters>
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Height" Value="22" />
- <Setter Property="Width" Value="23" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/左边.png" Stretch="None" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="border右上" TargetType="Border">
- <Style.Setters>
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="VerticalAlignment" Value="Top" />
- <Setter Property="Height" Value="23" />
- <Setter Property="Width" Value="22" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/From/右上.png" Stretch="None" />
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <!--#endregion-->
-
- <!--#region Button-->
- <Style x:Key="TitleBarStyle" TargetType="Button">
- <Setter Property="Foreground" Value="White" />
- <Setter Property="FontSize" Value="20" />
- <Setter Property="FontFamily" Value="/BPASmartClient.CustomResource;component/Fonts/#iconfont" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border Name="TitleBarBr" Background="Transparent">
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Background" Value="#22ffffff" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="CommonBtnStyle退出按钮" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Width" Value="65" />
- <Setter Property="Height" Value="24" />
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <!--<ControlTemplate.Resources>
- <Storyboard x:Key="OnMouseEnter1">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </ControlTemplate.Resources>-->
- <Border x:Name="BD" CornerRadius="2">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/退出按钮.png" />
- </Border.Background>
- <StackPanel
- Margin="5"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
- <TextBlock
- x:Name="textBlock"
- Margin="5,0,0,0"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- FontSize="14"
- Foreground="#A5FFFFFF"
- Text="{TemplateBinding Content}" />
- </StackPanel>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
- <EasingColorKeyFrame KeyTime="0" Value="White" />
- </ColorAnimationUsingKeyFrames>
- <!--<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0" Value="#FF135EC2"/>
- </ColorAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Offset)" Storyboard.TargetName="BD">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.007"/>
- </DoubleAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0" Value="#FF139DDB"/>
- </ColorAnimationUsingKeyFrames>-->
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed" />
- <VisualState x:Name="Disabled" />
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtnStyle返回按钮" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Width" Value="65" />
- <Setter Property="Height" Value="24" />
- <Setter Property="HorizontalAlignment" Value="Right" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="BD" CornerRadius="2">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/窗体样式/Tab/Tab_NoWZBJ.png" />
- </Border.Background>
- <StackPanel
- Margin="5"
- HorizontalAlignment="Center"
- Orientation="Horizontal">
- <Image Width="16" Source="/BPASmartClient.CustomResource;component/Image/退出.png" />
- <TextBlock
- x:Name="textBlock"
- Margin="5,0,0,0"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Foreground="#A5FFFFFF"
- Text="{TemplateBinding Content}" />
- </StackPanel>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal" />
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="textBlock" Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)">
- <EasingColorKeyFrame KeyTime="0" Value="White" />
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed" />
- <VisualState x:Name="Disabled" />
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtn_1" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="Width" Value="65" />
- <Setter Property="Height" Value="24" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <ControlTemplate.Resources>
- <Storyboard x:Key="OnMouseEnter1">
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB" />
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetName="BD" Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2" />
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </ControlTemplate.Resources>
- <Border
- x:Name="BD"
- Background="Transparent"
- BorderBrush="#05408a"
- BorderThickness="1"
- CornerRadius="12">
- <TextBlock
- x:Name="textBlock"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- FontSize="12"
- Foreground="{DynamicResource foreground}"
- Text="{TemplateBinding Content}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background" Value="#009dff" />
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource foreground}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BD" Property="Background" Value="#ff55" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="BD" Cursor="Hand">
- <StackPanel
- HorizontalAlignment="Center"
- Cursor="Hand"
- Orientation="Horizontal">
- <!--<Border Width="16" Margin="5">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
- </Border.Background>
- </Border>-->
- <TextBlock
- x:Name="textBlock"
- Margin="10,0,10,0"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="{DynamicResource ButtonSelectForeground}"
- Text="{TemplateBinding Content}" />
- <!-- Text="{TemplateBinding Content}" -->
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtn_返回" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- <Setter Property="Width" Value="68" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border x:Name="BD" Cursor="Hand">
- <StackPanel
- Margin="5,0,10,0"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <Border Width="16" Margin="5">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮图标.png" />
- </Border.Background>
- </Border>
- <TextBlock
- x:Name="textBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="{DynamicResource ButtonSelectForeground}"
- Text="{TemplateBinding Content}" />
- <!-- Text="{TemplateBinding Content}" -->
- </StackPanel>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮2.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部切图/返回按钮1.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonSelectForeground}" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="{DynamicResource ButtonUnSelectForeground}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style TargetType="{x:Type Separator}">
- <Setter Property="Height" Value="1" />
- <Setter Property="Margin" Value="0,4,0,4" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Separator}">
- <Border>
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/顶部线条.png" />
- </Border.Background>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="CommonBtn_功能节点" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Margin" Value="10,5,10,5" />
-
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <StackPanel x:Name="BD" Orientation="Horizontal">
- <Image
- Width="24"
- Margin="5"
- Source="/BPASmartClient.CustomResource;component/Image/临时模板.png" />
- <TextBlock
- x:Name="textBlock"
- Margin="10,0,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- FontSize="12"
- Foreground="#00c1c3"
- Text="{TemplateBinding Content}" />
- <TextBlock
- x:Name="tex2tBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="#4fade8"
- Text="{TemplateBinding Content}"
- Visibility="Collapsed" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtn_产品制作" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <StackPanel x:Name="BD" Margin="5">
- <Image
- Width="24"
- Margin="5,10,5,0"
- Source="/BPASmartClient.CustomResource;component/Image/产品制作.png" />
- <TextBlock
- x:Name="textBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="#4fade8"
- Text="{TemplateBinding Content}"
- Visibility="Collapsed" />
- <Separator Margin="0,10,0,0" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
-
- <Style x:Key="CommonBtn_功能列表" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <StackPanel x:Name="BD" Margin="5">
- <Image
- Width="24"
- Margin="5,10,5,0"
- Source="/BPASmartClient.CustomResource;component/Image/功能列表.png" />
- <TextBlock
- x:Name="textBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="#4fade8"
- Text="{TemplateBinding Content}"
- Visibility="Collapsed" />
- <Separator Margin="0,10,0,0" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="CommonBtn_维护" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <StackPanel x:Name="BD" Margin="5">
- <Image
- Width="24"
- Margin="5,10,5,0"
- Source="/BPASmartClient.CustomResource;component/Image/维护.png" />
- <TextBlock
- x:Name="textBlock"
- VerticalAlignment="Center"
- FontSize="14"
- Foreground="#4fade8"
- Text="{TemplateBinding Content}"
- Visibility="Collapsed" />
- <Separator Margin="0,10,0,0" />
- </StackPanel>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/Pop_bg.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/矩形.png" />
- </Setter.Value>
- </Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
-
- <Style x:Key="Comm8" TargetType="Button">
- <Style.Setters>
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="Width" Value="69" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <!--<ControlTemplate.Resources>
- <Storyboard x:Key="OnMouseEnter1">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF139DDB"/>
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)" Storyboard.TargetName="BD">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="#FF135EC2"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </ControlTemplate.Resources>-->
- <Border x:Name="BD" Cursor="Hand">
- <TextBlock
- x:Name="textBlock"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- FontSize="12"
- Foreground="{DynamicResource foreground}"
- Text="{TemplateBinding Content}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="White" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="#FFD7DCE0" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter TargetName="BD" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOn.png" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="textBlock" Property="Foreground" Value="#3afdff" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <!--#endregion-->
-
- <!--#region TextBox-->
- <Style
- x:Key="TextBoxStyle人员"
- BasedOn="{x:Null}"
- TargetType="{x:Type TextBox}">
- <Setter Property="Foreground" Value="#A4EBF7" />
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
- </Setter.Value>
- </Setter>
- <Setter Property="FontSize" Value="14" />
- <Setter Property="TextWrapping" Value="NoWrap" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="Height" Value="35" />
- <Setter Property="Width" Value="auto" />
- <Setter Property="MinWidth" Value="200" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Themes:ListBoxChrome
- x:Name="Bd"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
- RenderMouseOver="{TemplateBinding IsMouseOver}"
- SnapsToDevicePixels="true">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <Image
- Width="20"
- Height="Auto"
- Margin="20,0,0,0"
- HorizontalAlignment="Right"
- Cursor="Hand"
- Source="Image/搜索按钮.png"
- Tag="Search" />
- <ScrollViewer
- x:Name="PART_ContentHost"
- VerticalAlignment="Center"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- <!--<local:ButtonEx Grid.Column="1" ButtonType="Icon" Icon="Images/search.png" Cursor="Hand" Margin="3" Width="{Binding ElementName=PART_ContentHost, Path=Height}" Height="{Binding ElementName=PART_ContentHost, Path=Height}" Click="Button_SearchMBK_Click"/>-->
- </Grid>
- </Themes:ListBoxChrome>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Bd" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
- <Condition Property="IsSelectionActive" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
- </MultiTrigger>
- </Style.Triggers>
- </Style>
-
- <Style
- x:Key="TextBoxStyle搜索框"
- BasedOn="{x:Null}"
- TargetType="{x:Type TextBox}">
- <Setter Property="Foreground" Value="#A4EBF7" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="TextWrapping" Value="NoWrap" />
- <Setter Property="BorderBrush" Value="Transparent" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Margin" Value="10,0,0,0" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="CaretBrush" Value="Aqua" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="Height" Value="40" />
- <Setter Property="Width" Value="135" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="Bd" VerticalAlignment="Center">
- <Border.Background>
- <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/搜索框.png" />
- </Border.Background>
-
- <Grid>
- <ScrollViewer
- x:Name="PART_ContentHost"
- VerticalAlignment="Center"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden" />
-
- <Image
- Width="20"
- Margin="10,3,3,3"
- HorizontalAlignment="Left"
- Source="/BPASmartClient.CustomResource;component/Image/搜索按钮.png"
- Stretch="Uniform" />
- </Grid>
-
- </Border>
-
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
- <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
- <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
- <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
- <Condition Property="IsSelectionActive" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
- </MultiTrigger>
- </Style.Triggers>
- </Style>
- <!--#endregion-->
-
- <!--#region UserNameTextBoxStyle-->
- <LinearGradientBrush x:Key="TextBoxBorder" MappingMode="Absolute" StartPoint="0,0" EndPoint="0,20">
- <GradientStop Offset="0.05" Color="#ABADB3" />
- <GradientStop Offset="0.07" Color="#E2E3EA" />
- <GradientStop Offset="1" Color="#E3E9EF" />
- </LinearGradientBrush>
-
- <Style
- x:Key="UserNameTextBoxStyle"
- BasedOn="{x:Null}"
- TargetType="{x:Type TextBox}">
- <Setter Property="Foreground" Value="White" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="CaretBrush" Value="Aqua" />
- <Setter Property="Height" Value="40" />
- <Setter Property="Width" Value="135" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="FontSize" Value="16" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="Bd" VerticalAlignment="Center">
- <Grid>
- <ScrollViewer
- x:Name="PART_ContentHost"
- VerticalAlignment="Center"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden" />
-
- <Path
- x:Name="p1"
- Stroke="#7720FDFA"
- StrokeThickness="1">
- <Path.Data>
- <PathGeometry>
- <PathFigure IsClosed="False" StartPoint="1, 1">
- <LineSegment Point="133,1" />
- <LineSegment Point="133,38" />
- <LineSegment Point="1,38" />
- <LineSegment Point="1,1" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
-
- <Path
- Name="p2"
- Stroke="#aa20FDFA"
- StrokeThickness="3">
- <Path.Data>
- <PathGeometry>
- <PathFigure IsClosed="False" StartPoint="10, 1">
- <LineSegment Point="1,1" />
- <LineSegment Point="1,10" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
-
- <Path
- Name="p3"
- Stroke="#aa20FDFA"
- StrokeThickness="3">
- <Path.Data>
- <PathGeometry>
- <PathFigure IsClosed="False" StartPoint="125, 1">
- <LineSegment Point="133,1" />
- <LineSegment Point="133,10" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
-
- <Path
- x:Name="p4"
- Stroke="#aa20FDFA"
- StrokeThickness="3">
- <Path.Data>
- <PathGeometry>
- <PathFigure IsClosed="False" StartPoint="125, 38">
- <LineSegment Point="133,38" />
- <LineSegment Point="133,30" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
-
- <Path
- x:Name="p5"
- Stroke="#aa20FDFA"
- StrokeThickness="3">
- <Path.Data>
- <PathGeometry>
- <PathFigure IsClosed="False" StartPoint="1, 30">
- <LineSegment Point="1,38" />
- <LineSegment Point="10,38" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
- </Grid>
-
- </Border>
-
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="Bd" Property="Opacity" Value="0.56" />
- <!--<Setter TargetName="UserTextBlock" Property="Opacity" Value="0.56" />-->
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="Bd" Property="BorderBrush" Value="#aa3ba7f2" />
- <Setter TargetName="p1" Property="Stroke" Value="#aa20FDFA" />
- <Setter TargetName="p2" Property="Stroke" Value="Aqua" />
- <Setter TargetName="p3" Property="Stroke" Value="Aqua" />
- <Setter TargetName="p4" Property="Stroke" Value="Aqua" />
- <Setter TargetName="p5" Property="Stroke" Value="Aqua" />
- <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF7EB4EA" />-->
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="true">
- <Setter TargetName="Bd" Property="BorderBrush" Value="#FFCA51" />
- <Setter TargetName="p1" Property="Stroke" Value="#aaFFCA51" />
- <Setter TargetName="p2" Property="Stroke" Value="#FFCA51" />
- <Setter TargetName="p3" Property="Stroke" Value="#FFCA51" />
- <Setter TargetName="p4" Property="Stroke" Value="#FFCA51" />
- <Setter TargetName="p5" Property="Stroke" Value="#FFCA51" />
- <!--<Setter TargetName="UserTextBlock" Property="Foreground" Value="#FF569DE5" />-->
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsInactiveSelectionHighlightEnabled" Value="true" />
- <Condition Property="IsSelectionActive" Value="false" />
- </MultiTrigger.Conditions>
- <Setter Property="SelectionBrush" Value="{DynamicResource {x:Static SystemColors.InactiveSelectionHighlightBrushKey}}" />
- </MultiTrigger>
- </Style.Triggers>
- </Style>
- <!--#endregion-->
-
- <!--#region TextBlock-->
- <Style x:Key="80号字体样式" TargetType="TextBlock">
- <Setter Property="FontSize" Value="16" />
- <Setter Property="TextWrapping" Value="Wrap" />
- <Setter Property="FontFamily" Value="/BPASmartClient.CustomResource;Component/Fonts/#zihun80hao-mengquxiaoyuti"/>
- <Setter Property="Foreground" Value="#FFFCD5B5" />
- </Style>
-
-
-
- <Style TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FontSize" Value="20" />
- </Style.Setters>
- </Style>
-
- <Style x:Key="Title" TargetType="TextBlock">
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Foreground" Value="#FF58C7EE" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- </Style>
-
- <Style x:Key="数码管Text" TargetType="TextBlock">
- <Setter Property="FontFamily" Value="../Fonts/#Quartz M" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Foreground" Value="{DynamicResource foreground}" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- </Style>
- <!--#endregion-->
-
- <!--#region GroupBox-->
- <BorderGapMaskConverter x:Key="BorderGapMaskConverter" />
- <Style TargetType="{x:Type GroupBox}">
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="Foreground" Value="{DynamicResource Titleforeground}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type GroupBox}">
- <Grid SnapsToDevicePixels="true">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="6" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="6" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="6" />
- </Grid.RowDefinitions>
- <Rectangle Grid.RowSpan="2" Grid.ColumnSpan="4" />
- <Border
- Grid.Row="2"
- Grid.RowSpan="2"
- Grid.ColumnSpan="4"
- Margin="0,0,0,0"
- BorderThickness="0"
- CornerRadius="0" />
- <Image
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1"
- Height="4"
- Margin="0,5,0,0"
- HorizontalAlignment="Left"
- Source="/BPASmartClient.CustomResource;component/Image/表格/矩形2609.png" />
- <Border
- x:Name="Header"
- Grid.Row="0"
- Grid.RowSpan="2"
- Grid.Column="1"
- Height="30"
- Margin="30,0,0,0"
- Padding="3,1,3,0">
- <ContentPresenter
- VerticalAlignment="Center"
- ContentSource="Header"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ContentPresenter
- Grid.Row="2"
- Grid.Column="1"
- Grid.ColumnSpan="2"
- Margin="{TemplateBinding Padding}"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <!--#region 空MenuHeader-->
- <Style x:Key="MenuItem_NonStyle" TargetType="{x:Type MenuItem}">
- <Setter Property="Height" Value="Auto" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type MenuItem}">
- <Grid Margin="1">
- <ContentPresenter
- x:Name="Presenter"
- Margin="{TemplateBinding Padding}"
- ContentSource="Header" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
-
- <!--#region dataGrid-->
- <Style TargetType="DataGrid" x:Key="dataGrid_Style">
- <!--网格线颜色-->
- <Setter Property="CanUserResizeColumns" Value="false" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="#a2c2e8" />
- <Setter Property="HorizontalGridLinesBrush">
- <Setter.Value>
- <SolidColorBrush Color="#a2c2e8" />
- </Setter.Value>
- </Setter>
- <Setter Property="VerticalGridLinesBrush">
- <Setter.Value>
- <SolidColorBrush Color="#a2c2e8" />
- </Setter.Value>
- </Setter>
- </Style>
-
- <!--#region dataGridRow-->
- <Style x:Key="DatagridRow_Style" TargetType="DataGridRow">
- <Setter Property="Background" Value="#3afdff" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="Height" Value="20"/>
- <Style.Triggers>
- <!-- 隔行换色 -->
- <Trigger Property="AlternationIndex" Value="0">
- <Setter Property="Background" Value="#FFFAFAFA" />
- </Trigger>
- <Trigger Property="AlternationIndex" Value="1">
- <Setter Property="Background" Value="#FFF5F5F7" />
- </Trigger>
-
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#4fade8" />
- </Trigger>
-
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Background" Value="#4fade8" />
- <Setter Property="Foreground" Value="#FF111111" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!--#endregion-->
-
- <!--#region dataGridHeader-->
- <Style TargetType="DataGridColumnHeader" x:Key="dataGridHeader_Style">
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="MinWidth" Value="0" />
- <Setter Property="MinHeight" Value="30" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Cursor" Value="Hand" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="DataGridColumnHeader">
- <Border x:Name="BackgroundBorder" BorderThickness="0,1,0,1"
- BorderBrush="#e6dbba"
- Width="Auto">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <ContentPresenter Margin="0,0,0,0" VerticalAlignment="Center"
- HorizontalAlignment="Center" />
- <Path x:Name="SortArrow" Visibility="Collapsed" Data="M0,0 L1,0 0.5,1 z" Stretch="Fill"
- Grid.Column="0" Width="8" Height="6" Fill="White" Margin="0,0,50,0"
- VerticalAlignment="Center" RenderTransformOrigin="1,1" />
- <Rectangle Width="1" Fill="#d6c79b" HorizontalAlignment="Right" Grid.ColumnSpan="1" />
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="Height" Value="25" />
- </Style>
- <!--#endregion-->
- <!--#region dataGridCell-->
- <Style TargetType="DataGridCell" x:Key="dataGridCell_Style">
- <Setter Property="Height" Value="20"/>
- <Setter Property="FontSize" Value="14"/>
-
- <Style.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Background" Value="White" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Foreground" Value="Black" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!--#endregion-->
- <!--#endregion-->
-
- </ResourceDictionary>
|