1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786 |
- <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="#FF5B85BB" 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="#5B85BB" />
- </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="#5B85BB" />
-
- </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="#5B85BB" >
- </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="#5B85BB" 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="#5B85BB"/>
- </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="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="24"/>
- <Border x:Name="OverBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="24">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
- </Border.Background>
- </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>
- <!-- Button Template -->
- <ControlTemplate x:Key="ColorButtonTemplate" 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.0"/>
- <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
- <VisualTransition GeneratedDuration="0" To="Pressed"/>
- <VisualTransition From="Pressed" GeneratedDuration="0:0:0.0"/>
- </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="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"/>
- </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="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 x:Key="color_btn" 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 ColorButtonTemplate}"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- </Style>
- <!-- Button Template -->
- <ControlTemplate x:Key="StopButtonTemplate" 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.0"/>
- <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
- <VisualTransition GeneratedDuration="0" To="Pressed"/>
- <VisualTransition From="Pressed" GeneratedDuration="0:0:0.0"/>
- </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="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"/>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Border x:Name="BaseBorder"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="12"/>
- <Border x:Name="OverBorder"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="12">
- <Border.Background>
- <SolidColorBrush Color="{StaticResource OverOverlay}" Opacity="0"/>
- </Border.Background>
- </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 x:Key="lift_stop_btn" 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 StopButtonTemplate}"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- </Style>
- </ResourceDictionary>
|