123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674 |
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:Localization">
- <!-- ============== COLORS ============== -->
- <Color x:Key="NormalFgColor">#FFF1F3F4</Color>
- <Color x:Key="NormalBgColor">#FF4D555B</Color>
- <Color x:Key="NormalDarkBgColor">#FF464E53</Color>
- <Color x:Key="NormalBdColor">#FF31373A</Color>
- <Color x:Key="NormalDarkBdColor">#FF2F3437</Color>
- <Color x:Key="CheckBgColor">#FF31373A</Color>
- <Color x:Key="CheckBdColor">#FF54B3E5</Color>
- <Color x:Key="TrackBgColor">#FF383D42</Color>
- <Color x:Key="TrackBdColor">#FF2E3438</Color>
- <Color x:Key="TrackLightBdColor">#FF2E3338</Color>
- <Color x:Key="TrackDarkBdColor">#FF2C3135</Color>
- <Color x:Key="OverOverlay">#19CBEBFF</Color>
- <Color x:Key="OverFgColor">#FFF1F3F4</Color>
- <Color x:Key="PressOverlay">#646464</Color>
- <Color x:Key="FocusColor">#646464</Color>
- <Color x:Key="FocusGlowColor">#646464</Color>
- <Color x:Key="FocusTransparentGlowColor">#00114C74</Color>
- <Color x:Key="FocusShineColor">#646464</Color>
- <Color x:Key="FocusTransparentShineColor">#001B6F9C</Color>
- <Color x:Key="DisabledOverlay">#1468757E</Color>
- <Color x:Key="DisabledFgColor">#FF939B9F</Color>
- <Color x:Key="DisabledCheckBgColor">#FF31373A</Color>
- <Color x:Key="DisabledCheckBdColor">#FF6B9AB3</Color>
-
- <!-- ============== BRUSHES ============== -->
- <SolidColorBrush x:Key="NormalFgBrush" Color="{StaticResource NormalFgColor}"/>
- <LinearGradientBrush x:Key="NormalBgBrush" EndPoint="0.5,1" StartPoint="0.5,0"/>
- <SolidColorBrush x:Key="NormalDarkBgBrush" Color="{StaticResource NormalDarkBgColor}"/>
- <LinearGradientBrush x:Key="NormalBdBrush" EndPoint="0.5,1" StartPoint="0.5,0" />
- <SolidColorBrush x:Key="NormalDarkBdBrush" Color="{StaticResource NormalDarkBdColor}"/>
- <SolidColorBrush x:Key="TrackBgBrush" Color="{StaticResource TrackBgColor}"/>
- <LinearGradientBrush x:Key="TrackBdBrush" EndPoint="0.5,1" StartPoint="0.5,0"/>
- <SolidColorBrush x:Key="TrackLightBdBrush" Color="{StaticResource TrackLightBdColor}"/>
- <SolidColorBrush x:Key="TrackDarkBdBrush" Color="{StaticResource TrackDarkBdColor}"/>
- <SolidColorBrush x:Key="WindowBrush" Color="#FF3D4348"/>
- <SolidColorBrush x:Key="ToolTipFgBrush" Color="{StaticResource OverFgColor}"/>
- <SolidColorBrush x:Key="ToolTipBgBrush" Color="#FF466E87"/>
- <SolidColorBrush x:Key="ToolTipBdBrush" Color="#FF3A5E79"/>
- <SolidColorBrush x:Key="CaretBrush" Color="{StaticResource OverFgColor}"/>
- <SolidColorBrush x:Key="SelectionBrush" Color="{StaticResource CheckBgColor}"/>
- <!-- ============== CheckBox ============== -->
- <Style x:Key="{x:Type CheckBox}" TargetType="CheckBox">
- <Setter Property="SnapsToDevicePixels" Value="true"/>
- <Setter Property="TextElement.Foreground" Value="Black"/>
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="CheckBox">
- <BulletDecorator Background="Transparent">
- <BulletDecorator.Bullet>
- <Border x:Name="Border"
- Width="13"
- Height="13"
- CornerRadius="0"
- Background="Transparent"
- BorderThickness="1"
- BorderBrush="White">
- </Border>
- </BulletDecorator.Bullet>
-
- </BulletDecorator>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter Property="Background" Value="#FFF49811" TargetName="Border"/>
- </Trigger>
- <!--<Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Background" Value="red" TargetName="Border"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Background" Value="yellow" TargetName="Border"/>
- <Setter Property="BorderBrush" Value="green" TargetName="Border"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" Value="blue" TargetName="Border"/>
- <Setter Property="BorderBrush" Value="white" TargetName="Border"/>
- </Trigger>-->
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="LightSkyBlue" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <!--<Style x:Key="{x:Type CheckBox}" TargetType="CheckBox">
- <Setter Property="SnapsToDevicePixels" Value="true"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="CheckBox">
- <BulletDecorator Background="Transparent">
- <BulletDecorator.Bullet>
- <Border x:Name="Border"
- Width="13"
- Height="13"
- CornerRadius="0"
- Background="Transparent"
- BorderThickness="1"
- BorderBrush="White">
- </Border>
- </BulletDecorator.Bullet>
- <ContentPresenter Margin="4,0,0,0"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- RecognizesAccessKey="True"/>
- </BulletDecorator>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>-->
- <!-- ============== DEFAULT CONTROL STLYE ============== -->
- <Style x:Key="NoesisControlStyle">
- <!--<Setter Property="Control.Background" Value="{StaticResource NormalBgBrush}"/>-->
- <!--<Setter Property="Control.BorderBrush" Value="{StaticResource NormalBdBrush}"/>-->
- <Setter Property="Control.BorderThickness" Value="1"/>
- <Setter Property="Control.HorizontalContentAlignment" Value="Stretch"/>
- <Setter Property="Control.VerticalContentAlignment" Value="Stretch"/>
- <Setter Property="Control.Padding" Value="0"/>
- <Setter Property="Control.IsTabStop" Value="True"/>
- <Setter Property="Control.OverridesDefaultStyle" Value="False"/>
- </Style>
- <!-- ============== TEXT BOX ============== -->
- <!-- TextBoxScrollViewer Template -->
- <ControlTemplate x:Key="TextBoxScrollViewer" TargetType="{x:Type ScrollViewer}">
- <ScrollContentPresenter x:Name="ScrollContentPresenter" Margin="{TemplateBinding Padding}"/>
- </ControlTemplate>
- <!-- TextBox NoWrap Template -->
- <ControlTemplate x:Key="TextBoxNoWrapTemplate" TargetType="{x:Type TextBox}">
- <Grid>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
- <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
- <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
- <VisualTransition From="Disabled" GeneratedDuration="0:0:0.1"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="ReadOnly"/>
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="OverBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- <VisualStateGroup x:Name="FocusStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="Focused"/>
- <VisualTransition From="Focused" GeneratedDuration="0:0:0.3"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Unfocused"/>
- <VisualState x:Name="Focused">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.15"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Border x:Name="BaseBorder"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1"/>
- <Border x:Name="OverBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border x:Name="FocusBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1">
- <Border.BorderBrush>
- <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
- </Border.BorderBrush>
- <Border x:Name="FocusInnerBorder"
- BorderThickness="1"
- CornerRadius="0.01">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource FocusGlowColor}" Opacity="0"/>
- </Border.Background>
- <Border.BorderBrush>
- <SolidColorBrush Color="{StaticResource FocusShineColor}" Opacity="0"/>
- </Border.BorderBrush>
- </Border>
- </Border>
- <Border x:Name="DisabledBorder"
- CornerRadius="1.5">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border BorderThickness="{TemplateBinding BorderThickness}">
- <ScrollViewer x:Name="PART_ContentHost"
- Template="{StaticResource TextBoxScrollViewer}"
- Padding="{TemplateBinding Padding}"
- Foreground="{TemplateBinding Foreground}"/>
- </Border>
- </Grid>
- </ControlTemplate>
- <!-- TextBox Wrap Template -->
- <ControlTemplate x:Key="TextBoxWrapTemplate" TargetType="{x:Type TextBox}">
- <Grid>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
- <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
- <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
- <VisualTransition From="Disabled" GeneratedDuration="0:0:0.1"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="ReadOnly"/>
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="OverBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- <VisualStateGroup x:Name="FocusStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="Focused"/>
- <VisualTransition From="Focused" GeneratedDuration="0:0:0.3"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Unfocused"/>
- <VisualState x:Name="Focused">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.15"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Border x:Name="BaseBorder"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1">
- <ScrollViewer x:Name="PART_ContentHost1"
- Padding="{TemplateBinding Padding}"
- Foreground="{TemplateBinding Foreground}"/>
- </Border>
- <Border x:Name="OverBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border x:Name="FocusBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1">
- <Border.BorderBrush>
- <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
- </Border.BorderBrush>
- <Border x:Name="FocusInnerBorder"
- BorderThickness="1"
- CornerRadius="0.01">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource FocusGlowColor}" Opacity="0"/>
- </Border.Background>
- <Border.BorderBrush>
- <SolidColorBrush Color="{StaticResource FocusShineColor}" Opacity="0"/>
- </Border.BorderBrush>
- </Border>
- </Border>
- <Border x:Name="DisabledBorder"
- CornerRadius="1.5">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border BorderThickness="{TemplateBinding BorderThickness}">
- <ScrollViewer x:Name="PART_ContentHost"
- Padding="{TemplateBinding Padding}"
- Foreground="{TemplateBinding Foreground}"/>
- </Border>
- </Grid>
- </ControlTemplate>
- <!-- TextBox Style -->
-
- <Style TargetType="{x:Type TextBox}">
- <Style.Resources>
- <Storyboard x:Key="MouseOverOn">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="{StaticResource OverFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- <Storyboard x:Key="MouseOverOff">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
- <EasingColorKeyFrame KeyTime="0:0:0.3" Value="{StaticResource NormalFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- <Storyboard x:Key="OnDisabled">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="{StaticResource DisabledFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- <Storyboard x:Key="OnEnabled">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="{StaticResource NormalFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </Style.Resources>
- <Setter Property="Foreground">
- <Setter.Value>
- <SolidColorBrush Color="{StaticResource NormalFgColor}"/>
- </Setter.Value>
- </Setter>
- <Setter Property="Background" Value="{StaticResource TrackBgBrush}"/>
- <Setter Property="BorderBrush" Value="{StaticResource TrackBdBrush}"/>
- <Setter Property="CaretBrush" Value="{StaticResource CaretBrush}"/>
- <Setter Property="SelectionBrush" Value="{StaticResource SelectionBrush}"/>
- <Setter Property="SelectionOpacity" Value="0.5"/>
- <Setter Property="Padding" Value="2,4"/>
- <Setter Property="TextAlignment" Value="Left"/>
- <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
- <Setter Property="AllowDrop" Value="True"/>
- <Style.BasedOn>
- <StaticResource ResourceKey="NoesisControlStyle"/>
- </Style.BasedOn>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Trigger.ExitActions>
- <BeginStoryboard Storyboard="{StaticResource MouseOverOff}"/>
- </Trigger.ExitActions>
- <Trigger.EnterActions>
- <BeginStoryboard Storyboard="{StaticResource MouseOverOn}"/>
- </Trigger.EnterActions>
- </Trigger>
- <Trigger Property="TextWrapping" Value="NoWrap">
- <Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
- <Setter Property="VerticalScrollBarVisibility" Value="Hidden"/>
- <Setter Property="Template" Value="{StaticResource TextBoxNoWrapTemplate}"/>
- </Trigger>
- <Trigger Property="TextWrapping" Value="Wrap">
- <Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
- <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
- <Setter Property="Template" Value="{StaticResource TextBoxWrapTemplate}"/>
- </Trigger>
- <Trigger Property="TextWrapping" Value="WrapWithOverflow">
- <Setter Property="HorizontalScrollBarVisibility" Value="Hidden"/>
- <Setter Property="VerticalScrollBarVisibility" Value="Auto"/>
- <Setter Property="Template" Value="{StaticResource TextBoxWrapTemplate}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Trigger.ExitActions>
- <BeginStoryboard Storyboard="{StaticResource OnEnabled}"/>
- </Trigger.ExitActions>
- <Trigger.EnterActions>
- <BeginStoryboard Storyboard="{StaticResource OnDisabled}"/>
- </Trigger.EnterActions>
- </Trigger>
- </Style.Triggers>
- </Style>
-
- <!-- ============== PASSWORD BOX ============== -->
- <!-- TextBox NoWrap Template -->
- <ControlTemplate x:Key="PasswordTemplate" TargetType="{x:Type PasswordBox}">
- <Grid>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
- <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
- <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
- <VisualTransition From="Disabled" GeneratedDuration="0:0:0.1"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="ReadOnly"/>
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="OverBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.5"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- <VisualStateGroup x:Name="FocusStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="Focused"/>
- <VisualTransition From="Focused" GeneratedDuration="0:0:0.3"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Unfocused"/>
- <VisualState x:Name="Focused">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.15"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Border x:Name="BaseBorder"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1"/>
- <Border x:Name="OverBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border x:Name="FocusBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1">
- <Border.BorderBrush>
- <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
- </Border.BorderBrush>
- <Border x:Name="FocusInnerBorder"
- BorderThickness="1"
- CornerRadius="0.01">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource FocusGlowColor}" Opacity="0"/>
- </Border.Background>
- <Border.BorderBrush>
- <SolidColorBrush Color="{StaticResource FocusShineColor}" Opacity="0"/>
- </Border.BorderBrush>
- </Border>
- </Border>
- <Border x:Name="DisabledBorder"
- CornerRadius="1.5">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border BorderThickness="{TemplateBinding BorderThickness}">
- <ScrollViewer x:Name="PART_ContentHost"
- Template="{StaticResource TextBoxScrollViewer}"
- Padding="{TemplateBinding Padding}"
- Foreground="{TemplateBinding Foreground}"/>
- </Border>
- </Grid>
- </ControlTemplate>
- <!-- TextBox Style -->
- <Style TargetType="{x:Type PasswordBox}">
- <Style.Resources>
- <Storyboard x:Key="MouseOverOn">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
- <EasingColorKeyFrame KeyTime="0:0:0.1" Value="{StaticResource OverFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- <Storyboard x:Key="MouseOverOff">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
- <EasingColorKeyFrame KeyTime="0:0:0.3" Value="{StaticResource NormalFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- <Storyboard x:Key="OnDisabled">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
- <EasingColorKeyFrame KeyTime="0:0:0.5" Value="{StaticResource DisabledFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- <Storyboard x:Key="OnEnabled">
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="{x:Null}">
- <EasingColorKeyFrame KeyTime="0:0:0.5" Value="{StaticResource NormalFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </Style.Resources>
- <Setter Property="Foreground">
- <Setter.Value>
- <SolidColorBrush Color="{StaticResource NormalFgColor}"/>
- </Setter.Value>
- </Setter>
- <Setter Property="Background" Value="{StaticResource TrackBgBrush}"/>
- <Setter Property="BorderBrush" Value="{StaticResource TrackBdBrush}"/>
- <Setter Property="CaretBrush" Value="{StaticResource CaretBrush}"/>
- <Setter Property="SelectionBrush" Value="{StaticResource SelectionBrush}"/>
- <Setter Property="SelectionOpacity" Value="0.5"/>
- <Setter Property="Padding" Value="2,4"/>
- <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
- <Setter Property="AllowDrop" Value="true"/>
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/>
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/>
- <Setter Property="Template" Value="{StaticResource PasswordTemplate}"/>
- <Style.BasedOn>
- <StaticResource ResourceKey="NoesisControlStyle"/>
- </Style.BasedOn>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Trigger.ExitActions>
- <BeginStoryboard Storyboard="{StaticResource MouseOverOff}"/>
- </Trigger.ExitActions>
- <Trigger.EnterActions>
- <BeginStoryboard Storyboard="{StaticResource MouseOverOn}"/>
- </Trigger.EnterActions>
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Trigger.ExitActions>
- <BeginStoryboard Storyboard="{StaticResource OnEnabled}"/>
- </Trigger.ExitActions>
- <Trigger.EnterActions>
- <BeginStoryboard Storyboard="{StaticResource OnDisabled}"/>
- </Trigger.EnterActions>
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- ==============LoginTextBox ============== -->
- <Style x:Key="placeHolder" TargetType="{x:Type TextBox}" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Grid>
- <TextBox Text="{Binding Path=Text,
- RelativeSource={RelativeSource TemplatedParent},
- Mode=TwoWay,
- UpdateSourceTrigger=PropertyChanged}"
- x:Name="textSource"
- Background="Transparent"
- Panel.ZIndex="2" />
- <TextBox Text="{TemplateBinding Tag}" Background="{TemplateBinding Background}" Panel.ZIndex="1">
- <TextBox.Style>
- <Style TargetType="{x:Type TextBox}">
- <Setter Property="Foreground" Value="Transparent"/>
- <Style.Triggers>
- <DataTrigger Binding="{Binding Path=Text, Source={x:Reference textSource}}" Value="">
- <Setter Property="Foreground" Value="LightGray"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </TextBox.Style>
- </TextBox>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- ============== TAB CONTROL ============== -->
- <Style TargetType="{x:Type TabItem}" x:Key="door_select_btn" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="Padding" Value="10,0"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- <Setter Property="VerticalContentAlignment" Value="Stretch"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabItem}">
- <Grid x:Name="Tab" Margin="0">
- <Border x:Name="BaseBorder"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1,1,0,0"/>
- <Border x:Name="OverBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1,1,0,0">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border x:Name="FocusBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1,1,0,0">
- <Border.BorderBrush>
- <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
- </Border.BorderBrush>
- <Border x:Name="FocusInnerBorder"
- BorderThickness="1,1,1,0"
- CornerRadius="0.01,0.01,0,0">
- <Border.Background>
- <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0.5" Opacity="0">
- <GradientStop Color="{StaticResource FocusGlowColor}" Offset="0"/>
- <GradientStop Color="{StaticResource FocusTransparentGlowColor}" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- <Border.BorderBrush>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0">
- <GradientStop Color="{StaticResource FocusShineColor}" Offset="0"/>
- <GradientStop Color="{StaticResource FocusTransparentShineColor}" Offset="1"/>
- </LinearGradientBrush>
- </Border.BorderBrush>
- </Border>
- </Border>
- <Border x:Name="DisabledBorder"
- CornerRadius="1.5,1.5,0,0">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border x:Name="TabBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- Padding="{TemplateBinding Padding}"
- CornerRadius="1,1,0,0">
- <ContentPresenter x:Name="ContentHost"
- ContentSource="Header"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"/>
- </Border>
- <Border Name="Border" Margin="0,0,0,0" Background="Transparent">
- <ContentPresenter x:Name="ContentSite" VerticalAlignment="Center"
- HorizontalAlignment="Center"
- ContentSource="Header"
- RecognizesAccessKey="True">
- </ContentPresenter>
- </Border>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Panel.ZIndex" Value="100" />
- <Setter TargetName="Border" Property="Background" Value="#1B1B1B" />
- <Setter TargetName="Border" Property="TextElement.Foreground" Value="#FFEE9906" />
- </Trigger>
- <Trigger Property="IsSelected" Value="False">
- <Setter TargetName="Border" Property="TextElement.Foreground" Value="{x:Null}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- TabControl Style -->
- <Style TargetType="{x:Type TabControl}" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- <Setter Property="VerticalContentAlignment" Value="Stretch"/>
- <Setter Property="Padding" Value="4"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabControl}">
- <Grid KeyboardNavigation.TabNavigation="Local">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
- <VisualTransition From="Disabled" GeneratedDuration="0:0:0.1"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="PART_SelectedContentHost">
- <EasingColorKeyFrame KeyTime="0" Value="{StaticResource DisabledFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <TabPanel x:Name="HeaderPanel"
- Grid.Row="0"
- Panel.ZIndex="1"
- IsItemsHost="True"
- KeyboardNavigation.TabIndex="1"/>
- <Border x:Name="BaseBorder"
- Grid.Row="1"
- Background="{TemplateBinding Background}"
- CornerRadius="0,1,1,1"/>
- <Border x:Name="DisabledBorder"
- Grid.Row="1"
- CornerRadius="0,1.5,1.5,1.5">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border x:Name="SelectedContentBorder"
- Grid.Row="1"
- BorderThickness="{TemplateBinding BorderThickness}"
- KeyboardNavigation.DirectionalNavigation="Contained"
- KeyboardNavigation.TabIndex="2"
- KeyboardNavigation.TabNavigation="Local">
- <ContentPresenter x:Name="PART_SelectedContentHost"
- ContentSource="SelectedContent"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
-
- <TextElement.Foreground>
- <SolidColorBrush Color="{StaticResource NormalFgColor}"/>
- </TextElement.Foreground>
- </ContentPresenter>
- </Border>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- TabItem Style -->
- <Style TargetType="{x:Type TabItem}" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="Padding" Value="10,0"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- <Setter Property="VerticalContentAlignment" Value="Stretch"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TabItem}">
- <Grid x:Name="Tab" Margin="0">
-
- <Border x:Name="BaseBorder"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1,1,0,0"/>
- <Border x:Name="OverBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1,1,0,0">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border x:Name="FocusBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="1,1,0,0">
- <Border.BorderBrush>
- <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
- </Border.BorderBrush>
- <Border x:Name="FocusInnerBorder"
- BorderThickness="1,1,1,0"
- CornerRadius="0.01,0.01,0,0">
- <Border.Background>
- <LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0.5" Opacity="0">
- <GradientStop Color="{StaticResource FocusGlowColor}" Offset="0"/>
- <GradientStop Color="{StaticResource FocusTransparentGlowColor}" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- <Border.BorderBrush>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0">
- <GradientStop Color="{StaticResource FocusShineColor}" Offset="0"/>
- <GradientStop Color="{StaticResource FocusTransparentShineColor}" Offset="1"/>
- </LinearGradientBrush>
- </Border.BorderBrush>
- </Border>
- </Border>
- <Border x:Name="DisabledBorder"
- CornerRadius="1.5,1.5,0,0">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border x:Name="TabBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- Padding="{TemplateBinding Padding}"
- CornerRadius="1,1,0,0">
- <ContentPresenter x:Name="ContentHost"
- ContentSource="Header"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"/>
- </Border>
- <Border Name="Border" Margin="0,0,0,0" Background="Transparent">
- <ContentPresenter x:Name="ContentSite" VerticalAlignment="Center"
- HorizontalAlignment="Center"
- ContentSource="Header"
- RecognizesAccessKey="True">
-
- </ContentPresenter>
- </Border>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Panel.ZIndex" Value="100" />
- <Setter TargetName="Border" Property="Background" Value="Black" />
- <Setter TargetName="Border" Property="TextElement.Foreground" Value="#FFEE9906" />
-
- </Trigger>
- <Trigger Property="IsSelected" Value="False">
- <Setter TargetName="Border" Property="TextElement.Foreground" Value="{x:Null}" />
- </Trigger>
-
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!-- ItemsControl Style -->
- <Style TargetType="{x:Type ItemsControl}" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ItemsControl}">
- <Border
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- Padding="{TemplateBinding Padding}">
- <ItemsPresenter />
- </Border>
-
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- ============== SCROLL BAR ============== -->
- <!-- ScrollBarLineButton Style -->
- <Style x:Key="ScrollBarLineButton" TargetType="{x:Type RepeatButton}" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="IsTabStop" Value="False"/>
- <Setter Property="Focusable" Value="False"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Border Width="4" Background="#FFEBEBEB" SnapsToDevicePixels="True"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- ScrollBarPageButton Style -->
- <Style x:Key="ScrollBarPageButton" TargetType="{x:Type RepeatButton}" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="IsTabStop" Value="False"/>
- <Setter Property="Focusable" Value="False"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Border Background="Transparent"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- HorizontalScrollBarThumb Style -->
- <Style x:Key="HorizontalScrollBarThumb" TargetType="{x:Type Thumb}" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="IsTabStop" Value="False"/>
- <Setter Property="Focusable" Value="False"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Grid>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
- <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
- <VisualTransition GeneratedDuration="0" To="Pressed"/>
- <VisualTransition From="Pressed" GeneratedDuration="0:0:0.2"/>
- <VisualTransition GeneratedDuration="0:0:0.2" To="Disabled"/>
- <VisualTransition From="Disabled" GeneratedDuration="0:0:0.2"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.9"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Border x:Name="BaseBorder"
- Background="Transparent"/>
- <Border x:Name="DragBorder"
- CornerRadius="1"
- Margin="0,4">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource CheckBgColor}" Opacity="0.3"/>
- </Border.Background>
- </Border>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- HorizontalScrollbar Template -->
- <ControlTemplate x:Key="HorizontalScrollBar" TargetType="{x:Type ScrollBar}">
- <Grid
- Background="Transparent"
- MinHeight="{TemplateBinding MaxHeight}"
- MaxHeight="{TemplateBinding MaxHeight}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition MinWidth="{TemplateBinding MaxHeight}" MaxWidth="{TemplateBinding MaxHeight}"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition MinWidth="{TemplateBinding MaxHeight}" MaxWidth="{TemplateBinding MaxHeight}"/>
- </Grid.ColumnDefinitions>
- <Track x:Name="PART_Track" Grid.Column="0" Grid.ColumnSpan="3" Margin="1,0" Orientation="Horizontal">
- <Track.DecreaseRepeatButton>
- <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageLeftCommand"/>
- </Track.DecreaseRepeatButton>
- <Track.Thumb>
- <Thumb x:Name="Thumb" Style="{StaticResource HorizontalScrollBarThumb}" IsEnabled="False"/>
- </Track.Thumb>
- <Track.IncreaseRepeatButton>
- <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageRightCommand"/>
- </Track.IncreaseRepeatButton>
- </Track>
- <RepeatButton x:Name="LeftLineButton"
- Grid.Column="0"
- Style="{StaticResource ScrollBarLineButton}"
- Command="ScrollBar.LineLeftCommand">
- <Geometry>M 4 0 L 4 8 L 0 4 Z</Geometry>
- </RepeatButton>
- <RepeatButton x:Name="RightLineButton"
- Grid.Column="2"
- Style="{StaticResource ScrollBarLineButton}"
- Command="ScrollBar.LineRightCommand">
- <Geometry>M 0 0 L 4 4 L 0 8 Z</Geometry>
- </RepeatButton>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="Thumb" Property="IsEnabled" Value="True"/>
- </Trigger>
- <Trigger SourceName="LeftLineButton" Property="IsMouseOver" Value="True">
- <Setter TargetName="Thumb" Property="IsEnabled" Value="False"/>
- </Trigger>
- <Trigger SourceName="RightLineButton" Property="IsMouseOver" Value="True">
- <Setter TargetName="Thumb" Property="IsEnabled" Value="False"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <!-- VerticalScrollBarThumb Style -->
- <Style x:Key="VerticalScrollBarThumb" TargetType="{x:Type Thumb}" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="IsTabStop" Value="False"/>
- <Setter Property="Focusable" Value="False"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Grid>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
- <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
- <VisualTransition GeneratedDuration="0" To="Pressed"/>
- <VisualTransition From="Pressed" GeneratedDuration="0:0:0.2"/>
- <VisualTransition GeneratedDuration="0:0:0.2" To="Disabled"/>
- <VisualTransition From="Disabled" GeneratedDuration="0:0:0.2"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.6"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.9"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DragBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Border x:Name="BaseBorder" Background="Transparent"/>
- <Border x:Name="DragBorder" CornerRadius="1" Margin="4,0">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource CheckBgColor}" Opacity="0.3"/>
- </Border.Background>
- </Border>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!-- VerticalScrollBar Template -->
- <ControlTemplate x:Key="VerticalScrollBar" TargetType="{x:Type ScrollBar}">
- <Grid
- Background="Transparent"
- MinWidth="{TemplateBinding MaxWidth}"
- MaxWidth="{TemplateBinding MaxWidth}">
- <Grid.RowDefinitions>
- <RowDefinition MinHeight="{TemplateBinding MaxWidth}" MaxHeight="{TemplateBinding MaxWidth}"/>
- <RowDefinition Height="*"/>
- <RowDefinition MinHeight="{TemplateBinding MaxWidth}" MaxHeight="{TemplateBinding MaxWidth}"/>
- </Grid.RowDefinitions>
- <Track x:Name="PART_Track" Grid.Row="0" Grid.RowSpan="3" Margin="0,1" Orientation="Vertical" IsDirectionReversed="True">
- <Track.DecreaseRepeatButton>
- <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageUpCommand"/>
- </Track.DecreaseRepeatButton>
- <Track.Thumb>
- <Thumb x:Name="Thumb" Style="{StaticResource VerticalScrollBarThumb}" IsEnabled="False"/>
- </Track.Thumb>
- <Track.IncreaseRepeatButton>
- <RepeatButton Style="{StaticResource ScrollBarPageButton}" Command="ScrollBar.PageDownCommand"/>
- </Track.IncreaseRepeatButton>
- </Track>
- <RepeatButton x:Name="UpLineButton"
- Grid.Row="0"
- Style="{StaticResource ScrollBarLineButton}"
- Command="ScrollBar.LineUpCommand">
- <Geometry>M 0 4 L 8 4 L 4 0 Z</Geometry>
- </RepeatButton>
- <RepeatButton x:Name="DownLineButton"
- Grid.Row="2"
- Style="{StaticResource ScrollBarLineButton}"
- Command="ScrollBar.LineDownCommand">
- <Geometry>M 0 0 L 4 4 L 8 0 Z</Geometry>
- </RepeatButton>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="Thumb" Property="IsEnabled" Value="True"/>
- </Trigger>
- <Trigger SourceName="UpLineButton" Property="IsMouseOver" Value="True">
- <Setter TargetName="Thumb" Property="IsEnabled" Value="False"/>
- </Trigger>
- <Trigger SourceName="DownLineButton" Property="IsMouseOver" Value="True">
- <Setter TargetName="Thumb" Property="IsEnabled" Value="False"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <!-- ScrollBar Style -->
- <Style TargetType="{x:Type ScrollBar}" BasedOn="{StaticResource NoesisControlStyle}">
- <Style.Triggers>
- <Trigger Property="Orientation" Value="Horizontal">
- <Setter Property="MaxHeight" Value="15"/>
- <Setter Property="Template" Value="{StaticResource HorizontalScrollBar}"/>
- </Trigger>
- <Trigger Property="Orientation" Value="Vertical">
- <Setter Property="MaxWidth" Value="15"/>
- <Setter Property="Template" Value="{StaticResource VerticalScrollBar}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <!-- ============== SCROLL VIEWER ============== -->
- <!-- ScrollViewer Style -->
- <Style TargetType="{x:Type ScrollViewer}" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="MinWidth" Value="15"/>
- <Setter Property="MinHeight" Value="15"/>
- <Setter Property="PanningMode" Value="Both"/>
- <Setter Property="HorizontalScrollBarVisibility" Value="Disabled"/>
- <Setter Property="VerticalScrollBarVisibility" Value="Visible"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ScrollViewer}">
- <Grid Background="{TemplateBinding Background}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <ScrollContentPresenter
- Grid.Column="0"
- Grid.ColumnSpan="2"
- Grid.Row="0"
- Grid.RowSpan="2"
- Content="{TemplateBinding Content}"
- ContentTemplate="{TemplateBinding ContentTemplate}"
- ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"
- CanContentScroll="{TemplateBinding CanContentScroll}"
- Margin="{TemplateBinding Padding}"/>
- <!-- The visibility of the ScrollBars is controlled by the implementation of the control -->
- <ScrollBar x:Name="PART_HorizontalScrollBar"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- Grid.Row="1"
- Orientation="Horizontal"
- MaxHeight="{TemplateBinding MinHeight}"
- Template="{StaticResource HorizontalScrollBar}"
- Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"
- Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
- ViewportSize="{TemplateBinding ViewportWidth}"
- Minimum="0"
- Maximum="{TemplateBinding ScrollableWidth}"/>
- <ScrollBar x:Name="PART_VerticalScrollBar"
- Grid.Column="1"
- Grid.Row="0"
- Grid.RowSpan="2"
- Orientation="Vertical"
- MaxWidth="{TemplateBinding MinWidth}"
- Template="{StaticResource VerticalScrollBar}"
- Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
- Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"
- ViewportSize="{TemplateBinding ViewportHeight}"
- Minimum="0"
- Maximum="{TemplateBinding ScrollableHeight}"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger SourceName="PART_HorizontalScrollBar" Property="IsMouseOver" Value="True">
- <Setter TargetName="PART_HorizontalScrollBar" Property="Panel.ZIndex" Value="1"/>
- </Trigger>
- <Trigger SourceName="PART_VerticalScrollBar" Property="IsMouseOver" Value="True">
- <Setter TargetName="PART_VerticalScrollBar" Property="Panel.ZIndex" Value="1"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <SolidColorBrush x:Key="TextForegroundBrush" Color="#FF482E19"/>
- <LinearGradientBrush x:Key="IndentBackground" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Offset="0" Color="#FF2E6E9B"/>
- <GradientStop Offset="0.95" Color="#FF143B5E"/>
- <GradientStop Offset="0.89" Color="#FF1C4E78"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="IndentBorder" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FF17436A" Offset="0"/>
- <GradientStop Color="#FF164269" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="LabelBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="White" Offset="0"/>
- <GradientStop Color="#FFCBCBCB" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="ControlShadowBrush" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#11000000" Offset="0"/>
- <GradientStop Color="#33000000" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="SliderBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FF1A7FB2"/>
- <GradientStop Color="#FF24648F" Offset="0.5"/>
- <GradientStop Color="#FF1A7FB2" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="SliderBackgroundBrush" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Offset="0" Color="#0C000000"/>
- <GradientStop Offset="0.5" Color="#4C000000"/>
- <GradientStop Offset="1" Color="#0C000000"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="SliderIndicatorBrush" StartPoint="0,0" EndPoint="0,1">
- <GradientStop Offset="0" Color="#00000000"/>
- <GradientStop Offset="1" Color="#4C000000"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="ComboBorderBrush" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#FF131313"/>
- <GradientStop Color="#FF131313" Offset="1"/>
- </LinearGradientBrush>
- <LinearGradientBrush x:Key="NoesisLogoBg" EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Offset="0" Color="#FF184C79"/>
- <GradientStop Offset="0.05" Color="#FF1B5688"/>
- <GradientStop Offset="1" Color="#FF123859"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="NoesisLogoFg" Color="#07000000"/>
- <SolidColorBrush x:Key="NoesisLogoBlueBg" Color="#FF2AA6E2"/>
- <Geometry x:Key="NoesisLogoGeometry">
- M64.552314,61.408115 L90.473059,64.639252 65.938536,97.224111 96.858771,170.22477 151.36087,176.44062 176.65871,144.70187 186.30899,167.69955 161.59547,200.607 80.812194,191.57223 39.827483,94.941438 z
- M48.254649,23.461594 L152.39867,36.273918 169.09616,74.476677 153.32091,95.305482 137.28592,57.748096 58.689337,48.038651 58.673125,48.036747 26.085236,92.157874 40.901858,129.9017 16.161385,126.74894 0.032970434,88.96424 z
- M136.8885,0 L177.71051,4.9764633 210.32399,79.460176 147.07187,163.27949 105.70369,158.62394 95.540381,134.55325 136.09376,139.68585 183.81151,76.187043 161.88087,25.886173 121.79224,19.86055 z
- </Geometry>
- <Geometry x:Key="NoesisTextGeometry">
- M92.8579999677658,70.3415300000004L91.6092999677657,70.3415300000004C89.1117999677657,70.3415300000004 86.3690999677657,69.0553500000004 84.6772999677657,67.5409700000003 83.3359999677656,66.3402600000004 81.3786999677656,63.7640900000003 79.5695999677656,61.6829800000004L48.2047999677656,14.2132800000004C44.6023999677656,9.61943000000042 40.5841999677656,5.85798000000045 37.5730999677657,3.3297700000004 32.8352999677656,1.39255000000037 29.1355999677657,0.416200000000344 22.8921999677656,0.416200000000344L-3.22343520764434E-08,0.416200000000344 -3.22343520764434E-08,91.5688500000003 21.6435999677657,91.5688500000003 21.6435999677657,21.6435500000003 22.8921999677656,21.6435500000003C25.3893999677656,21.6435500000003 27.0235999677656,22.4759800000004 29.1048999677656,23.7246500000003 31.1705999677658,25.5488600000003 33.1231999677656,27.6454000000003 34.6437999677657,30.1582000000003L66.0398999677656,78.0749800000003C69.6422999677656,82.7973200000003 72.2215999677657,85.6954300000003 75.5205999677657,88.6398700000003 80.0990999677657,90.7209900000004 84.9497999677657,91.9850800000002 91.6092999677657,91.9850800000002L114.501399967766,91.9850800000002 114.501399967766,2.27373673749166E-13 92.8579999677658,2.27373673749166E-13z
- M206.253499967766,3.41060514011881E-13L160.667099967766,3.41060514011881E-13C137.774799967766,3.41060514011881E-13,126.120799967766,9.57309000000032,126.120799967766,29.1355300000003L126.120799967766,62.4333200000003C126.120799967766,81.5795200000003,137.774799967766,91.5688500000003,160.667099967766,91.5688500000003L206.253499967766,91.5688500000003C229.145899967766,91.5688500000003,240.800099967766,81.9957600000003,240.800099967766,62.4333200000003L240.800099967766,29.1355300000003C240.800099967766,9.98931000000039,229.145899967766,3.41060514011881E-13,206.253499967766,3.41060514011881E-13z
- M218.323899967766,62.4333200000003C218.323899967766,67.4279700000003,214.161899967766,70.3415300000004,206.253499967766,70.3415300000004L160.667099967766,70.3415300000004C152.758899967766,70.3415300000004,148.596999967766,67.8441800000004,148.596999967766,62.4333200000003L148.596999967766,29.1355300000003C148.596999967766,23.7246500000003,152.758899967766,21.2273400000003,160.667099967766,21.2273400000003L206.253499967766,21.2273400000003C214.161899967766,21.2273400000003,218.323899967766,23.7246500000003,218.323899967766,29.1355300000003z
- M274.513899967766,65.7631100000002L274.513899967766,56.6062200000003 366.277899967766,56.6062200000003 366.277899967766,35.3788800000003 274.513899967766,35.3788800000003 274.513899967766,26.2219700000003C274.513899967766,23.3084200000003,276.178999967766,21.6435500000002,279.508699967766,21.6435500000002L366.694299967766,21.6435500000002 366.694299967766,2.27373673749166E-13 279.508699967766,2.27373673749166E-13C261.194999967766,2.27373673749166E-13,252.037899967766,7.49200000000019,252.037899967766,22.0597700000002L252.037899967766,68.6766500000002C252.037899967766,83.6606500000002,261.194999967766,91.1526500000002,279.508699967766,91.1526500000002L367.110299967766,91.1526500000002 367.110299967766,69.9253100000002 279.508699967766,69.9253100000002C276.178999967766,70.3415300000001,274.513899967766,68.6766500000002,274.513899967766,65.7631100000002z
- M464.725099967766,34.9626400000003L404.986699967766,34.9626400000003C401.656899967766,34.9626400000003,399.575899967766,33.7139800000003,399.575899967766,31.6328800000003L399.575899967766,24.5570900000003C399.575899967766,22.4759800000004,401.240899967766,21.2273400000003,404.986699967766,21.2273400000003L489.281899967766,21.2273400000003 489.281899967766,3.41060514011881E-13 404.986699967766,3.41060514011881E-13C386.672899967766,3.41060514011881E-13,377.516099967766,7.4920000000003,377.516099967766,22.0597700000003L377.516099967766,36.6275400000003C377.516099967766,49.5304200000003,386.672899967766,56.1899800000003,404.986699967766,56.1899800000003L464.725099967766,56.1899800000003C468.054699967766,56.1899800000003,469.719799967766,57.4386300000003,469.719799967766,59.5197500000004L469.719799967766,67.0117400000004C469.719799967766,69.0928600000004,468.054699967766,70.3415300000004,464.725099967766,70.3415300000004L380.429599967766,70.3415300000004 380.429599967766,91.5688500000003 464.725099967766,91.5688500000003C483.038799967766,91.5688500000003,492.195599967766,84.0768600000003,492.195599967766,69.5090700000003L492.195599967766,57.0224100000002C492.195599967766,42.4546400000002,483.038799967766,34.9626400000003,464.725099967766,34.9626400000003z
- M503.433699967766,3.41060514011881E-13L525.909499967766,3.41060514011881E-13 525.909499967766,91.1526500000003 503.433699967766,91.1526500000003z
- M625.010299967766,34.9626400000003L565.054499967766,34.9626400000003C561.724799967766,34.9626400000003,559.643599967766,33.7139800000003,559.643599967766,31.6328800000003L559.643599967766,24.5570900000003C559.643599967766,22.4759800000004,561.308399967766,21.2273400000003,565.054499967766,21.2273400000003L649.567499967766,21.2273400000003 649.567499967766,3.41060514011881E-13 565.054499967766,3.41060514011881E-13C546.740699967766,3.41060514011881E-13,537.583799967766,7.4920000000003,537.583799967766,22.0597700000003L537.583799967766,36.6275400000003C537.583799967766,49.5304200000003,546.740699967766,56.1899800000003,565.054499967766,56.1899800000003L625.010299967766,56.1899800000003C628.340199967766,56.1899800000003,630.005099967766,57.4386300000003,630.005099967766,59.5197500000004L630.005099967766,67.0117400000004C630.005099967766,69.0928600000004,628.340199967766,70.3415300000004,625.010299967766,70.3415300000004L540.497399967766,70.3415300000004 540.497399967766,91.5688500000003 625.010299967766,91.5688500000003C643.324099967766,91.5688500000003,652.481199967766,84.0768600000003,652.481199967766,69.5090700000003L652.481199967766,57.0224100000002C652.064899967766,42.4546400000002,642.907899967766,34.9626400000003,625.010299967766,34.9626400000003z
- </Geometry>
- <Geometry x:Key="NoesisGuiTextGeometry">
- M218.200700106049,67.01174C218.200700106049,69.09286,216.535800106049,70.34153,213.205900106049,70.34153L153.648800106049,70.34153C150.319100106049,70.34153,148.237800106049,69.09286,148.237800106049,67.01174L148.237800106049,0.416200000000003 125.762100106049,0.416200000000003 125.762100106049,69.50907C125.762100106049,84.49309,134.918800106049,91.98508,153.232600106049,91.98508L212.789900106049,91.98508C231.103500106049,91.98508,240.260500106049,84.49309,240.260500106049,69.92531L240.260500106049,2.5410988417629E-21 217.784500106049,2.5410988417629E-21 217.784500106049,67.01174z
- M251.914700106049,2.5410988417629E-21L274.390700106049,2.5410988417629E-21 274.390700106049,91.15265 251.914700106049,91.15265z
- M64.3942001060486,35.79507L64.3942001060486,58.27109 92.2812001060488,58.27109 92.2812001060488,70.34153 27.4707001060488,70.34153C24.1410001060485,70.34153,22.0598001060485,68.67665,22.0598001060485,65.76311L22.0598001060485,25.80576C22.0598001060485,22.89222,23.7246001060485,21.2273399999999,27.4707001060488,21.2273399999999L112.259700106049,21.2273399999999 112.259700106049,2.5410988417629E-21 27.4707001060488,2.5410988417629E-21C9.15670010604844,2.5410988417629E-21,1.06048446468776E-07,7.49199999999996,1.06048446468776E-07,22.05977L1.06048446468776E-07,68.67665C1.06048446468776E-07,83.66065,9.15670010604844,91.15265,27.4707001060488,91.15265L114.757000106049,91.15265 114.757000106049,35.37888 64.3942001060486,35.37888z
- </Geometry>
- <ScaleTransform x:Key="NoesisLogoTransform" ScaleX="1.5" ScaleY="1.5"/>
- <ControlTemplate x:Key="LabelTemplate" TargetType="{x:Type Label}">
- <Grid>
- <TextBlock Text="{TemplateBinding Content}" Margin="1,1,-1,-1" Foreground="#30000000" TextWrapping="Wrap" LineHeight="{TemplateBinding MinHeight}"/>
- <TextBlock Text="{TemplateBinding Content}" TextWrapping="Wrap" LineHeight="{TemplateBinding MinHeight}"/>
- </Grid>
- </ControlTemplate>
- <Style TargetType="{x:Type Label}">
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="Template" Value="{StaticResource LabelTemplate}"/>
- </Style>
- <Style x:Key="FocusStyle" TargetType="{x:Type Control}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Control}">
- <Border CornerRadius="2" BorderThickness="1" Margin="1">
- <Border.BorderBrush>
- <LinearGradientBrush>
- <GradientStop Offset="0.0" Color="#22E0F8FF"/>
- <GradientStop Offset="0.5" Color="#88E0F8FF"/>
- <GradientStop Offset="1.0" Color="#22E0F8FF"/>
- </LinearGradientBrush>
- </Border.BorderBrush>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type RepeatButton}" x:Key="SliderIncreaseButtonStyle">
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="IsTabStop" Value="False"/>
- <Setter Property="Focusable" Value="False"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Border Height="4" Background="#7A7A7A" SnapsToDevicePixels="True"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type RepeatButton}" x:Key="AmbientSliderIncreaseButtonStyle">
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="IsTabStop" Value="False"/>
- <Setter Property="Focusable" Value="False"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Border Height="4" Background="Transparent" SnapsToDevicePixels="True"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type RepeatButton}" x:Key="AmbientSliderDecreaseButtonStyle">
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Border Height="4" SnapsToDevicePixels="True" CornerRadius="2" Background="Transparent">
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type RepeatButton}" x:Key="SliderDecreaseButtonStyle">
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Border Height="4" SnapsToDevicePixels="True" CornerRadius="2" Background="#F49811" >
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="SliderButtonStyle" TargetType="{x:Type RepeatButton}">
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="IsTabStop" Value="False"/>
- <Setter Property="Focusable" Value="False"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RepeatButton}">
- <Border Width="4" Background="#F49811" SnapsToDevicePixels="True"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="{x:Type Thumb}" x:Key="SliderThumbStyle">
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="Height" Value="20"/>
- <Setter Property="Width" Value="20"></Setter>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Border CornerRadius="7">
- <Ellipse Width="20" Height="20" Fill="#F49811"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <ControlTemplate x:Key="SliderTemplate" TargetType="{x:Type Slider}">
- <Border BorderThickness="1" CornerRadius="3" UseLayoutRounding="True" >
- <Border>
- <Grid>
- <Track x:Name="PART_Track">
- <Track.DecreaseRepeatButton>
- <RepeatButton x:Name="DecBtn"
- Style="{StaticResource SliderDecreaseButtonStyle}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton
- Style="{StaticResource SliderIncreaseButtonStyle}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb Style="{StaticResource SliderThumbStyle}" Width="20" Margin ="-10,0"/>
- </Track.Thumb>
- </Track>
- </Grid>
- </Border>
- </Border>
- </ControlTemplate>
- <ControlTemplate x:Key="AmbinetSliderTemplate" TargetType="{x:Type Slider}">
- <Border BorderThickness="1" CornerRadius="3" UseLayoutRounding="True" >
- <Border>
- <Grid>
- <Track x:Name="PART_Track">
- <Track.DecreaseRepeatButton>
- <RepeatButton x:Name="DecBtn"
- Style="{StaticResource AmbientSliderDecreaseButtonStyle}"/>
- </Track.DecreaseRepeatButton>
- <Track.IncreaseRepeatButton>
- <RepeatButton
- Style="{StaticResource AmbientSliderIncreaseButtonStyle}"/>
- </Track.IncreaseRepeatButton>
- <Track.Thumb>
- <Thumb Style="{StaticResource SliderThumbStyle}" Width="20" Margin ="-10,0"/>
- </Track.Thumb>
- </Track>
- </Grid>
- </Border>
- </Border>
- </ControlTemplate>
- <Style x:Key="SliderStyle" TargetType="{x:Type Slider}">
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="IsMoveToPointEnabled" Value="True"/>
- <Setter Property="MinHeight" Value="0"/>
- <Setter Property="Minimum" Value="2000"/>
- <Setter Property="Maximum" Value="6000"/>
- <Setter Property="SmallChange" Value="1"/>
- <Setter Property="LargeChange" Value="10"/>
- <Setter Property="Template" Value="{StaticResource SliderTemplate}"/>
- </Style>
- <Style x:Key="AmbientSliderStyle" TargetType="{x:Type Slider}">
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="IsMoveToPointEnabled" Value="True"/>
- <Setter Property="MinHeight" Value="0"/>
- <Setter Property="Minimum" Value="2000"/>
- <Setter Property="Maximum" Value="6000"/>
- <Setter Property="SmallChange" Value="1"/>
- <Setter Property="LargeChange" Value="10"/>
- <Setter Property="Template" Value="{StaticResource AmbinetSliderTemplate}"/>
- </Style>
- <ControlTemplate x:Key="ComboBoxButtonTemplate" TargetType="{x:Type ToggleButton}">
- <Grid Background="Transparent"/>
- </ControlTemplate>
- <Style x:Key="ComboBoxButtonStyle" TargetType="{x:Type ToggleButton}">
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="ClickMode" Value="Press"/>
- <Setter Property="Focusable" Value="False"/>
- <Setter Property="IsTabStop" Value="False"/>
- <Setter Property="Template" Value="{StaticResource ComboBoxButtonTemplate}"/>
- </Style>
- <ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}">
- <Grid UseLayoutRounding="True">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.2" To="MouseOver"/>
- <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.2"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="Disabled"/>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Border>
- <Grid>
- <Border x:Name="Bd" >
- <Border.Background>
- <SolidColorBrush Color="Black" Opacity="0"/>
- </Border.Background>
- </Border>
- <ContentPresenter x:Name="ContentSite"
- HorizontalAlignment="Center" VerticalAlignment="Center" Margin="{TemplateBinding Padding}"
- ContentSource="SelectionBoxItem"/>
- <ToggleButton x:Name="DropDownButton"
- IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
- Style="{StaticResource ComboBoxButtonStyle}"/>
- </Grid>
- </Border>
- <Popup x:Name="PART_Popup"
- Focusable="False"
- IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource TemplatedParent}}"
- Placement="Bottom"
- PopupAnimation="Slide" VerticalOffset="-2" AllowsTransparency="True">
- <Grid x:Name="DropDown" MinWidth="{TemplateBinding ActualWidth}" MaxHeight="500">
- <Border x:Name="DropDownBorder" Margin="1,0,1,2">
- <Border.Background>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
- <GradientStop Color="#1B1B1B" Offset="0"/>
- <GradientStop Color="#1B1B1B" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- <StackPanel
- IsItemsHost="True"
- KeyboardNavigation.DirectionalNavigation="Contained"
- UseLayoutRounding="{TemplateBinding UseLayoutRounding}" Margin="3"/>
- </Border>
- </Grid>
- </Popup>
- </Grid>
- </ControlTemplate>
- <Style TargetType="{x:Type ComboBox}">
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="FontSize" Value="11"/>
- <Setter Property="Padding" Value="0,2,0,3"/>
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusStyle}"/>
- <Setter Property="Template" Value="{StaticResource ComboBoxTemplate}"/>
- </Style>
- <ControlTemplate x:Key="ComboBoxItemTemplate" TargetType="{x:Type ComboBoxItem}">
- <Border x:Name="Bd" BorderThickness="1" CornerRadius="2">
- <Border.BorderBrush>
- <SolidColorBrush Color="Black" Opacity="0"/>
- </Border.BorderBrush>
- <Border.Background>
- <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0">
- <GradientStop Color="Black" Offset="0"/>
- <GradientStop Color="Black" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.2" To="MouseOver"/>
- <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.2"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="Bd">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="Bd">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Disabled"/>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3,2"/>
- </Border>
- </ControlTemplate>
- <Style TargetType="{x:Type ComboBoxItem}">
- <Setter Property="OverridesDefaultStyle" Value="True"/>
- <Setter Property="Foreground" Value="White"/>
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusStyle}"/>
- <Setter Property="Template" Value="{StaticResource ComboBoxItemTemplate}"/>
- </Style>
- <!-- ============== BUTTON ============== -->
- <!-- Button Template -->
- <ControlTemplate x:Key="ButtonTemplate" TargetType="{x:Type Button}">
- <Grid>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="Disabled"/>
- <VisualTransition From="Disabled" GeneratedDuration="0:0:0.1"/>
- <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
- <VisualTransition From="MouseOver" GeneratedDuration="0:0:0.3"/>
- <VisualTransition GeneratedDuration="0" To="Pressed"/>
- <VisualTransition From="Pressed" GeneratedDuration="0:0:0.2"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="OverBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="ContentHost">
- <EasingColorKeyFrame KeyTime="0" Value="{StaticResource OverFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="OverBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="OverBorder">
- <EasingColorKeyFrame KeyTime="0" Value="{StaticResource PressOverlay}"/>
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="ContentHost">
- <EasingColorKeyFrame KeyTime="0" Value="{StaticResource OverFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="DisabledBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(TextElement.Foreground).(SolidColorBrush.Color)" Storyboard.TargetName="ContentHost">
- <EasingColorKeyFrame KeyTime="0" Value="{StaticResource DisabledFgColor}"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- <VisualStateGroup x:Name="FocusStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0:0:0.1" To="Focused"/>
- <VisualTransition From="Focused" GeneratedDuration="0:0:0.3"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Unfocused"/>
- <VisualState x:Name="Focused">
- <Storyboard>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.BorderBrush).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(Brush.Opacity)" Storyboard.TargetName="FocusInnerBorder">
- <EasingDoubleKeyFrame KeyTime="0" Value="0.25"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Border x:Name="BaseBorder"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4"/>
- <Border x:Name="OverBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border x:Name="FocusBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="4">
- <Border.BorderBrush>
- <SolidColorBrush Color="{StaticResource FocusColor}" Opacity="0"/>
- </Border.BorderBrush>
- <Border x:Name="FocusInnerBorder"
- BorderThickness="1"
- CornerRadius="0.01">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource FocusGlowColor}" Opacity="0"/>
- </Border.Background>
- <Border.BorderBrush>
- <SolidColorBrush Color="{StaticResource FocusShineColor}" Opacity="0"/>
- </Border.BorderBrush>
- </Border>
- </Border>
- <Border x:Name="DisabledBorder"
- CornerRadius="4">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource DisabledOverlay}" Opacity="0"/>
- </Border.Background>
- </Border>
- <Border
- BorderThickness="{TemplateBinding BorderThickness}"
- Padding="{TemplateBinding Padding}">
- <ContentPresenter x:Name="ContentHost"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
- <TextElement.Foreground>
- <SolidColorBrush Color="{StaticResource NormalFgColor}"/>
- </TextElement.Foreground>
- </ContentPresenter>
- </Border>
- </Grid>
- </ControlTemplate>
- <!-- Button Style -->
- <Style TargetType="{x:Type Button}" BasedOn="{StaticResource NoesisControlStyle}">
- <Setter Property="Padding" Value="6,4"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Template" Value="{StaticResource ButtonTemplate}"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
-
- </Style>
- </ResourceDictionary>
|