1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero2">
- <!--КНОПКА АВТОРИЗАЦИИ-->
- <Style x:Key="AuthoButtons" TargetType="Button">
- <Setter Property="FontSize" Value="30"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="Foreground" Value="#f8f8ff"/>
- <Setter Property="Background" Value="#52a8ff"/>
- <Setter Property="Height" Value="55"/>
- <Setter Property="Width" Value="300"/>
- <Setter Property="BorderThickness" Value="3"/>
- <Setter Property="BorderBrush" Value="#1f8fff"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
- <Grid>
- <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" ContentSource="{TemplateBinding ContentStringFormat}"/>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Resources>
- <Style TargetType ="Border">
- <Setter Property="CornerRadius" Value="15"/>
- </Style>
- </Style.Resources>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#1f8fff"/>
- <Setter Property="BorderBrush" Value="#0075eb"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <!--ТЕКСТ БОКС АВТОРИЗАЦИИ-->
- <Style x:Key="TextBoxStyle" TargetType="TextBox">
- <Setter Property="Width" Value="300"/>
- <Setter Property="Height" Value="55"/>
- <Setter Property="Background" Value="#e6f4ff"/>
- <Setter Property="FontSize" Value="25"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="Padding" Value="10"/>
- <Setter Property="AllowDrop" Value="True"/>
- <Setter Property="BorderThickness" Value="3"/>
- <Setter Property="Cursor" Value="IBeam"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="HorizontalContentAlignment" Value="Left"/>
- <Setter Property="Padding" Value="6 4"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="TextBox">
- <Border Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="True">
- <Grid Margin="{TemplateBinding Margin}">
- <ScrollViewer x:Name="PART_ContentHost"
- Focusable="False"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden"/>
- <Label x:Name="WaterMarkerLabel"
- VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
- HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
- Visibility="Collapsed"
- Margin="5,0"
- Content="{TemplateBinding Tag}"
- Foreground="Gray"/>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="Text" Value=""/>
- </MultiTrigger.Conditions>
- <Setter Property="Visibility"
- TargetName="WaterMarkerLabel"
- Value="Visible"/>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Resources>
- <Style TargetType ="Border">
- <Setter Property="CornerRadius" Value="15"/>
- </Style>
- </Style.Resources>
- </Style>
- <!--ПАРОЛЬ БОКС АВТОРИЗАЦИИ-->
- <Style x:Key="PasswordBoxStyle" TargetType="PasswordBox">
- <Setter Property="Width" Value="300"/>
- <Setter Property="Height" Value="55"/>
- <Setter Property="Background" Value="#e6f4ff"/>
- <Setter Property="FontSize" Value="25"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="Padding" Value="10"/>
- <Setter Property="AllowDrop" Value="True"/>
- <Setter Property="BorderThickness" Value="3"/>
- <Setter Property="Cursor" Value="IBeam"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="HorizontalContentAlignment" Value="Left"/>
- <Setter Property="Padding" Value="6 4"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="PasswordBox">
- <Border Background="{TemplateBinding Background}" CornerRadius="15"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="True">
- <Grid Margin="{TemplateBinding Margin}">
- <ScrollViewer x:Name="PART_ContentHost"
- Focusable="False"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden"/>
- <Label x:Name="WaterMarkerLabel"
- VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
- HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
- Visibility="Collapsed"
- Margin="5,0"
- Content="{TemplateBinding Tag}"
- Foreground="Gray"/>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--НАДПИСЬ АВТОРИЗАЦИЯ-->
- <Style x:Key="LabelStyle" TargetType="Label">
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontSize" Value="40"/>
- <Setter Property="FontWeight" Value="UltraBold"/>
- <Setter Property="Foreground" Value="#1f8fff"/>
- </Style>
- <!--ВРЕМЕННАЯ ШТУКА ДЛЯ ТЕКСБЛОКОВ ДОБАВЛЕНИЕ ЗАДАЧИ-->
- <Style x:Key="BlockHeader" TargetType="TextBlock">
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontSize" Value="50"/>
- <Setter Property="FontWeight" Value="UltraBold"/>
- <Setter Property="Foreground" Value="#1f8fff"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- </Style>
- <!--КНОПКА ЗАКРЫТИЯ-->
- <Style x:Key="PanelButtonX" TargetType="Button">
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Width" Value="30"/>
- <Setter Property="Height" Value="30"/>
- <Setter Property="HorizontalAlignment" Value="Right"/>
- <Setter Property="VerticalAlignment" Value="Top"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Padding" Value="5"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
- <Grid>
- <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" ContentSource="{TemplateBinding ContentStringFormat}"/>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Resources>
- <Style TargetType ="Border">
- <Setter Property="CornerRadius" Value="10"/>
- </Style>
- </Style.Resources>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#FF9C9C"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <!--КНОПКА СВОРАЧИВАНИЯ-->
- <Style x:Key="PanelButtonMin" TargetType="Button">
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Width" Value="30"/>
- <Setter Property="Height" Value="30"/>
- <Setter Property="HorizontalAlignment" Value="Right"/>
- <Setter Property="VerticalAlignment" Value="Top"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Padding" Value="3"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
- <Grid>
- <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" ContentSource="{TemplateBinding ContentStringFormat}"/>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Resources>
- <Style TargetType ="Border">
- <Setter Property="CornerRadius" Value="10"/>
- </Style>
- </Style.Resources>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#9DB1CC"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <!--СТИЛЬ КАРТИНОК НА ПАНЕЛЬКЕ-->
- <Style x:Key="ImageStyle" TargetType="Image">
- <Setter Property="HorizontalAlignment" Value="Left"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="Stretch" Value="Uniform"/>
- <Setter Property="Width" Value="50"/>
- <Setter Property="Height" Value="50"/>
- </Style>
- <!--СТИЛЬ ТЕКСТА НА ПАНЕЛЬКЕ-->
- <Style x:Key="Text_Style" TargetType="TextBlock">
- <Setter Property="FontFamily" Value="Comic Sans Ms"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="HorizontalAlignment" Value="Left"/>
- <Setter Property="Foreground" Value="#f8f8ff"/>
- <Setter Property="FontSize" Value="30"/>
- <Setter Property="Margin" Value="60,0,0,0"/>
- </Style>
- <!--КНОПКИ НА ПАНЕЛЬКЕ-->
- <Style x:Key="NaviButtons" TargetType="Button">
- <Setter Property="Height" Value="70"/>
- <Setter Property="Width" Value="280"/>
- <Setter Property="BorderBrush" Value="Transparent"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border Background="{TemplateBinding Background}">
- <Grid>
- <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" ContentSource="{TemplateBinding ContentStringFormat}"/>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#79A0C1"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <!--Добавление задачи-->
- <!--ТектсБоксы-->
- <Style x:Key="AddTaskTB" TargetType="TextBox">
- <Setter Property="Background" Value="#edf4fa"/>
- <Setter Property="Height" Value="45"/>
- <Setter Property="FontSize" Value="25"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="AllowDrop" Value="True"/>
- <Setter Property="BorderThickness" Value="3"/>
- <Setter Property="Cursor" Value="IBeam"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="HorizontalContentAlignment" Value="Left"/>
- <Setter Property="Padding" Value="6 -1 6 -1"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="TextBox">
- <Border Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- SnapsToDevicePixels="True">
- <Grid Margin="{TemplateBinding Margin}">
- <ScrollViewer x:Name="PART_ContentHost"
- Focusable="False"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden"/>
- <Label x:Name="WaterMarkerLabel"
- VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
- HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
- Visibility="Collapsed"
- Margin="7,-7,0,0"
- Content="{TemplateBinding Tag}"
- FontSize="25"
- Foreground="#293745"/>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="Text" Value=""/>
- </MultiTrigger.Conditions>
- <Setter Property="Visibility"
- TargetName="WaterMarkerLabel"
- Value="Visible"/>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Resources>
- <Style TargetType ="Border">
- <Setter Property="CornerRadius" Value="10"/>
- </Style>
- </Style.Resources>
- </Style>
- <!--КомбоБоксы-->
- <Style x:Key="FocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <SolidColorBrush x:Key="TextBox.Static.Background" Color="#edf4fa"/>
- <Style x:Key="ComboBoxEditableTextBox" TargetType="{x:Type TextBox}">
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="Background" Value="#edf4fa"/>
- <Setter Property="AllowDrop" Value="true"/>
- <Setter Property="MinWidth" Value="0"/>
- <Setter Property="MinHeight" Value="0"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <ScrollViewer x:Name="PART_ContentHost" Background="Transparent" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <LinearGradientBrush x:Key="ComboBox.Static.Background" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#FFF0F0F0" Offset="0.0"/>
- <GradientStop Color="#FFE5E5E5" Offset="1.0"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="ComboBox.Static.Border" Color="#FFACACAC"/>
- <SolidColorBrush x:Key="ComboBox.Static.Glyph" Color="#edf4fa"/>
- <SolidColorBrush x:Key="ComboBox.Static.Editable.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ComboBox.Static.Editable.Border" Color="#FFABADB3"/>
- <SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Background" Color="Transparent"/>
- <SolidColorBrush x:Key="ComboBox.Static.Editable.Button.Border" Color="Transparent"/>
- <LinearGradientBrush x:Key="ComboBox.MouseOver.Background" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#FFECF4FC" Offset="0.0"/>
- <GradientStop Color="#FFDCECFC" Offset="1.0"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="ComboBox.MouseOver.Border" Color="#FF7EB4EA"/>
- <SolidColorBrush x:Key="ComboBox.MouseOver.Glyph" Color="#FF000000"/>
- <SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Border" Color="#FF7EB4EA"/>
- <LinearGradientBrush x:Key="ComboBox.MouseOver.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#FFEBF4FC" Offset="0.0"/>
- <GradientStop Color="#FFDCECFC" Offset="1.0"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="ComboBox.MouseOver.Editable.Button.Border" Color="#FF7EB4EA"/>
- <LinearGradientBrush x:Key="ComboBox.Pressed.Background" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#FFDAECFC" Offset="0.0"/>
- <GradientStop Color="#FFC4E0FC" Offset="1.0"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="ComboBox.Pressed.Border" Color="#FF569DE5"/>
- <SolidColorBrush x:Key="ComboBox.Pressed.Glyph" Color="#FF000000"/>
- <SolidColorBrush x:Key="ComboBox.Pressed.Editable.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ComboBox.Pressed.Editable.Border" Color="#FF569DE5"/>
- <LinearGradientBrush x:Key="ComboBox.Pressed.Editable.Button.Background" EndPoint="0,1" StartPoint="0,0">
- <GradientStop Color="#FFDAEBFC" Offset="0.0"/>
- <GradientStop Color="#FFC4E0FC" Offset="1.0"/>
- </LinearGradientBrush>
- <SolidColorBrush x:Key="ComboBox.Pressed.Editable.Button.Border" Color="#FF569DE5"/>
- <SolidColorBrush x:Key="ComboBox.Disabled.Background" Color="#FFF0F0F0"/>
- <SolidColorBrush x:Key="ComboBox.Disabled.Border" Color="#FFD9D9D9"/>
- <SolidColorBrush x:Key="ComboBox.Disabled.Glyph" Color="#FFBFBFBF"/>
- <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Border" Color="#FFBFBFBF"/>
- <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Background" Color="Transparent"/>
- <SolidColorBrush x:Key="ComboBox.Disabled.Editable.Button.Border" Color="Transparent"/>
- <Style x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
- <Setter Property="OverridesDefaultStyle" Value="true"/>
- <Setter Property="IsTabStop" Value="false"/>
- <Setter Property="Focusable" Value="false"/>
- <Setter Property="ClickMode" Value="Press"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ToggleButton}">
- <Border x:Name="templateRoot" CornerRadius="5" Background="{StaticResource ComboBox.Static.Background}" BorderBrush="{StaticResource ComboBox.Static.Border}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
- <Border x:Name="splitBorder" BorderBrush="Transparent" BorderThickness="1" HorizontalAlignment="Right" Margin="0" SnapsToDevicePixels="true" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
- <Path x:Name="arrow" Data="M 1 1 L 15 1 L 8 8 T 1 1" Fill="#172E3E" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center"/>
- </Border>
- </Border>
- <ControlTemplate.Triggers>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
- <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
- <Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
- <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Static.Editable.Background}"/>
- <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Static.Editable.Border}"/>
- <Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.Static.Editable.Button.Background}"/>
- <Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.Static.Editable.Button.Border}"/>
- </MultiDataTrigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Fill" TargetName="arrow" Value="{StaticResource ComboBox.MouseOver.Glyph}"/>
- </Trigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
- <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Background}"/>
- <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Border}"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
- <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Editable.Background}"/>
- <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.MouseOver.Editable.Border}"/>
- <Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.MouseOver.Editable.Button.Background}"/>
- <Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.MouseOver.Editable.Button.Border}"/>
- </MultiDataTrigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter Property="Fill" TargetName="arrow" Value="{StaticResource ComboBox.Pressed.Glyph}"/>
- </Trigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
- <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Background}"/>
- <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Border}"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsPressed, RelativeSource={RelativeSource Mode=Self}}" Value="true"/>
- <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Editable.Background}"/>
- <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Pressed.Editable.Border}"/>
- <Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.Pressed.Editable.Button.Background}"/>
- <Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.Pressed.Editable.Button.Border}"/>
- </MultiDataTrigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Fill" TargetName="arrow" Value="{StaticResource ComboBox.Disabled.Glyph}"/>
- </Trigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
- <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="false"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Border}"/>
- </MultiDataTrigger>
- <MultiDataTrigger>
- <MultiDataTrigger.Conditions>
- <Condition Binding="{Binding IsEnabled, RelativeSource={RelativeSource Mode=Self}}" Value="false"/>
- <Condition Binding="{Binding IsEditable, RelativeSource={RelativeSource AncestorType={x:Type ComboBox}}}" Value="true"/>
- </MultiDataTrigger.Conditions>
- <Setter Property="Background" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Editable.Background}"/>
- <Setter Property="BorderBrush" TargetName="templateRoot" Value="{StaticResource ComboBox.Disabled.Editable.Border}"/>
- <Setter Property="Background" TargetName="splitBorder" Value="{StaticResource ComboBox.Disabled.Editable.Button.Background}"/>
- <Setter Property="BorderBrush" TargetName="splitBorder" Value="{StaticResource ComboBox.Disabled.Editable.Button.Border}"/>
- </MultiDataTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
- <Grid x:Name="templateRoot" SnapsToDevicePixels="true">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
- </Grid.ColumnDefinitions>
- <Popup x:Name="PART_Popup" AllowsTransparency="true" Grid.ColumnSpan="2" IsOpen="{Binding IsDropDownOpen, RelativeSource={RelativeSource Mode=TemplatedParent}}" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
- <theme:SystemDropShadowChrome x:Name="shadow" Color="Transparent" MinWidth="{Binding ActualWidth, ElementName=templateRoot}" MaxHeight="{TemplateBinding MaxDropDownHeight}">
- <Border x:Name="dropDownBorder" CornerRadius="5" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="1">
- <ScrollViewer x:Name="DropDownScrollViewer">
- <Grid x:Name="grid" RenderOptions.ClearTypeHint="Enabled">
- <Canvas x:Name="canvas" HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
- <Rectangle x:Name="opaqueRect" Fill="{Binding Background, ElementName=dropDownBorder}" Height="{Binding ActualHeight, ElementName=dropDownBorder}" Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
- </Canvas>
- <ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </Grid>
- </ScrollViewer>
- </Border>
- </theme:SystemDropShadowChrome>
- </Popup>
- <ToggleButton x:Name="toggleButton" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Style="{StaticResource ComboBoxToggleButton}"/>
- <Border x:Name="border" Background="{StaticResource TextBox.Static.Background}" Margin="{TemplateBinding BorderThickness}">
- <TextBox x:Name="PART_EditableTextBox" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" IsReadOnly="{Binding IsReadOnly, RelativeSource={RelativeSource Mode=TemplatedParent}}" Margin="{TemplateBinding Padding}" Style="{StaticResource ComboBoxEditableTextBox}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Opacity" TargetName="border" Value="0.56"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocusWithin" Value="true">
- <Setter Property="Foreground" Value="Black"/>
- </Trigger>
- <Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true">
- <Setter Property="Margin" TargetName="shadow" Value="0,0,5,5"/>
- <Setter Property="Color" TargetName="shadow" Value="#71000000"/>
- </Trigger>
- <Trigger Property="HasItems" Value="false">
- <Setter Property="Height" TargetName="dropDownBorder" Value="95"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true"/>
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
- </MultiTrigger>
- <Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
- <Setter Property="Canvas.Top" TargetName="opaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
- <Setter Property="Canvas.Left" TargetName="opaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <ControlTemplate x:Key="ComboBoxTemplate" TargetType="{x:Type ComboBox}">
- <Grid x:Name="templateRoot" SnapsToDevicePixels="true">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition MinWidth="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Width="0"/>
- </Grid.ColumnDefinitions>
- <Popup x:Name="PART_Popup" AllowsTransparency="true" Grid.ColumnSpan="2" IsOpen="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Margin="1" Placement="Bottom" PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}">
- <theme:SystemDropShadowChrome x:Name="shadow" Color="Transparent" MinWidth="{Binding ActualWidth, ElementName=templateRoot}" MaxHeight="{TemplateBinding MaxDropDownHeight}">
- <Border x:Name="dropDownBorder" CornerRadius="4" Background="{DynamicResource {x:Static SystemColors.WindowBrushKey}}" BorderBrush="{DynamicResource {x:Static SystemColors.WindowFrameBrushKey}}" BorderThickness="3">
- <ScrollViewer x:Name="DropDownScrollViewer">
- <Grid x:Name="grid" RenderOptions.ClearTypeHint="Enabled">
- <Canvas x:Name="canvas" HorizontalAlignment="Left" Height="0" VerticalAlignment="Top" Width="0">
- <Rectangle x:Name="opaqueRect" Fill="{Binding Background, ElementName=dropDownBorder}" Height="{Binding ActualHeight, ElementName=dropDownBorder}" Width="{Binding ActualWidth, ElementName=dropDownBorder}"/>
- </Canvas>
- <ItemsPresenter x:Name="ItemsPresenter" KeyboardNavigation.DirectionalNavigation="Contained" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </Grid>
- </ScrollViewer>
- </Border>
- </theme:SystemDropShadowChrome>
- </Popup>
- <ToggleButton x:Name="toggleButton" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2" IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" Style="{StaticResource ComboBoxToggleButton}"/>
- <ContentPresenter x:Name="contentPresenter" ContentStringFormat="{TemplateBinding SelectionBoxItemStringFormat}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" Content="{TemplateBinding SelectionBoxItem}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsHitTestVisible="false" Margin="{TemplateBinding Padding}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="HasDropShadow" SourceName="PART_Popup" Value="true">
- <Setter Property="Margin" TargetName="shadow" Value="0,0,5,5"/>
- <Setter Property="Color" TargetName="shadow" Value="#71000000"/>
- </Trigger>
- <Trigger Property="HasItems" Value="false">
- <Setter Property="Height" TargetName="dropDownBorder" Value="95"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true"/>
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
- </MultiTrigger>
- <Trigger Property="ScrollViewer.CanContentScroll" SourceName="DropDownScrollViewer" Value="false">
- <Setter Property="Canvas.Top" TargetName="opaqueRect" Value="{Binding VerticalOffset, ElementName=DropDownScrollViewer}"/>
- <Setter Property="Canvas.Left" TargetName="opaqueRect" Value="{Binding HorizontalOffset, ElementName=DropDownScrollViewer}"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <Style x:Key="ComboBoxStyle1" TargetType="{x:Type ComboBox}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
- <Setter Property="Background" Value="{StaticResource ComboBox.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource ComboBox.Static.Border}"/>
- <Setter Property="Height" Value="45"/>
- <Setter Property="FontSize" Value="25"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="AllowDrop" Value="True"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.WindowTextBrushKey}}"/>
- <Setter Property="BorderThickness" Value="3"/>
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
- <Setter Property="Padding" Value="10 2"/>
- <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
- <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="Template" Value="{StaticResource ComboBoxTemplate}"/>
- <Style.Triggers>
- <Trigger Property="IsEditable" Value="true">
- <Setter Property="IsTabStop" Value="false"/>
- <Setter Property="Padding" Value="2"/>
- <Setter Property="Template" Value="{StaticResource ComboBoxEditableTemplate}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="AddTaskCmbItem" TargetType="ComboBoxItem">
- <Style.Resources>
- <Style TargetType ="Border">
- <Setter Property="CornerRadius" Value="5"/>
- </Style>
- </Style.Resources>
- </Style>
- <!--Дата пикеры-->
- <Style x:Key="DPCalendarStyle" TargetType="{x:Type Calendar}">
- <Setter Property="Foreground" Value="#222528"/>
- <Setter Property="BorderThickness" Value="1"/>
- </Style>
- <Style x:Key="DatePickerStyle1" TargetType="{x:Type DatePicker}">
- <Setter Property="Foreground" Value="#FF333333"/>
- <Setter Property="Background" Value="#edf4fa"/>
- <Setter Property="IsTodayHighlighted" Value="True"/>
- <Setter Property="SelectedDateFormat" Value="Short"/>
- <Setter Property="FontSize" Value="25"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="BorderThickness" Value="2"/>
- <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type DatePicker}">
- <Border Grid.ColumnSpan="2"
- Height="45"
- Width="250"
- BorderThickness="3"
- BorderBrush="Gray"
- CornerRadius="4"
- Background="#edf4fa">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="Disabled">
- <Storyboard>
- <DoubleAnimation Duration="0" Storyboard.TargetName="PART_DisabledVisual" To="1" Storyboard.TargetProperty="Opacity"/>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Grid x:Name="PART_Root" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}">
- <Grid.Resources>
- <SolidColorBrush x:Key="DisabledBrush" Color="#edf4fa"/>
- <ControlTemplate x:Key="DropDownButtonTemplate" TargetType="{x:Type Button}">
- <Grid>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualStateGroup.Transitions>
- <VisualTransition GeneratedDuration="0"/>
- <VisualTransition GeneratedDuration="0:0:0.1" To="MouseOver"/>
- <VisualTransition GeneratedDuration="0:0:0.1" To="Pressed"/>
- </VisualStateGroup.Transitions>
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="MouseOver">
- <Storyboard>
- <ColorAnimation Duration="0" Storyboard.TargetName="Background" To="#FF448DCA" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"/>
- <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
- <SplineColorKeyFrame KeyTime="0" Value="#7FFFFFFF"/>
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
- <SplineColorKeyFrame KeyTime="0" Value="#CCFFFFFF"/>
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
- <SplineColorKeyFrame KeyTime="0" Value="#F2FFFFFF"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Pressed">
- <Storyboard>
- <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)">
- <SplineColorKeyFrame KeyTime="0" Value="#FF448DCA"/>
- </ColorAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="Highlight" Storyboard.TargetProperty="(UIElement.Opacity)">
- <SplineDoubleKeyFrame KeyTime="0" Value="1"/>
- </DoubleAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[1].(GradientStop.Color)">
- <SplineColorKeyFrame KeyTime="0" Value="#EAFFFFFF"/>
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[2].(GradientStop.Color)">
- <SplineColorKeyFrame KeyTime="0" Value="#C6FFFFFF"/>
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[3].(GradientStop.Color)">
- <SplineColorKeyFrame KeyTime="0" Value="#6BFFFFFF"/>
- </ColorAnimationUsingKeyFrames>
- <ColorAnimationUsingKeyFrames BeginTime="0" Duration="00:00:00.001" Storyboard.TargetName="BackgroundGradient" Storyboard.TargetProperty="(Border.Background).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
- <SplineColorKeyFrame KeyTime="0" Value="#F4FFFFFF"/>
- </ColorAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- <VisualState x:Name="Disabled"/>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Grid Background="#edf4fa" FlowDirection="LeftToRight" HorizontalAlignment="Center" Height="18" Margin="0" VerticalAlignment="Center" Width="19">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="20*"/>
- <ColumnDefinition Width="20*"/>
- <ColumnDefinition Width="20*"/>
- <ColumnDefinition Width="20*"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="23*"/>
- <RowDefinition Height="19*"/>
- <RowDefinition Height="19*"/>
- <RowDefinition Height="19*"/>
- </Grid.RowDefinitions>
- <Border x:Name="Highlight" BorderBrush="#FF45D6FA" BorderThickness="1" CornerRadius="5" Grid.ColumnSpan="4" Margin="-1" Opacity="0" Grid.RowSpan="4" Grid.Row="0"/>
- <Border x:Name="Background" Background="#FF1F3B53" BorderBrush="#FFFFFFFF" BorderThickness="1" CornerRadius="5" Grid.ColumnSpan="4" Margin="0,-1,0,0" Opacity="1" Grid.RowSpan="3" Grid.Row="1"/>
- <Border x:Name="BackgroundGradient" BorderBrush="#BF000000" BorderThickness="1" CornerRadius="5" Grid.ColumnSpan="4" Margin="0,-1,0,0" Opacity="1" Grid.RowSpan="3" Grid.Row="1">
- <Border.Background>
- <LinearGradientBrush EndPoint=".7,1" StartPoint=".7,0">
- <GradientStop Color="#edf4fa" Offset="0"/>
- <GradientStop Color="#edf4fa" Offset="0.375"/>
- <GradientStop Color="#edf4fa" Offset="0.625"/>
- <GradientStop Color="#edf4fa" Offset="1"/>
- </LinearGradientBrush>
- </Border.Background>
- </Border>
- <Rectangle Grid.ColumnSpan="4" Grid.RowSpan="1" StrokeThickness="1">
- <Rectangle.Fill>
- <LinearGradientBrush EndPoint="0.3,-1.1" StartPoint="0.46,1.6">
- <GradientStop Color="#FF4084BD"/>
- <GradientStop Color="#FFAFCFEA" Offset="1"/>
- </LinearGradientBrush>
- </Rectangle.Fill>
- <Rectangle.Stroke>
- <LinearGradientBrush EndPoint="0.48,-1" StartPoint="0.48,1.25">
- <GradientStop Color="#FF494949"/>
- <GradientStop Color="#FF9F9F9F" Offset="1"/>
- </LinearGradientBrush>
- </Rectangle.Stroke>
- </Rectangle>
- <Path Grid.Column="0" Grid.ColumnSpan="4" Data="M11.426758,8.4305077 L11.749023,8.4305077 L11.749023,16.331387 L10.674805,16.331387 L10.674805,10.299648 L9.0742188,11.298672 L9.0742188,10.294277 C9.4788408,10.090176 9.9094238,9.8090878 10.365967,9.4510155 C10.82251,9.0929432 11.176106,8.7527733 11.426758,8.4305077 z M14.65086,8.4305077 L18.566387,8.4305077 L18.566387,9.3435936 L15.671368,9.3435936 L15.671368,11.255703 C15.936341,11.058764 16.27293,10.960293 16.681133,10.960293 C17.411602,10.960293 17.969301,11.178717 18.354229,11.615566 C18.739157,12.052416 18.931622,12.673672 18.931622,13.479336 C18.931622,15.452317 18.052553,16.438808 16.294415,16.438808 C15.560365,16.438808 14.951641,16.234707 14.468243,15.826504 L14.881817,14.929531 C15.368796,15.326992 15.837872,15.525723 16.289043,15.525723 C17.298809,15.525723 17.803692,14.895514 17.803692,13.635098 C17.803692,12.460618 17.305971,11.873379 16.310528,11.873379 C15.83071,11.873379 15.399232,12.079271 15.016094,12.491055 L14.65086,12.238613 z" Fill="#FF2F2F2F" HorizontalAlignment="Center" Margin="4,3,4,3" RenderTransformOrigin="0.5,0.5" Grid.RowSpan="3" Grid.Row="1" Stretch="Fill" VerticalAlignment="Center"/>
- <Ellipse Grid.ColumnSpan="4" Fill="#edf4fa" HorizontalAlignment="Center" Height="3" StrokeThickness="0" VerticalAlignment="Center" Width="3"/>
- <Border x:Name="DisabledVisual" BorderBrush="#B2FFFFFF" BorderThickness="1" CornerRadius="5" Grid.ColumnSpan="4" Opacity="0" Grid.RowSpan="4" Grid.Row="0"/>
- </Grid>
- </Grid>
- </ControlTemplate>
- </Grid.Resources>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Button x:Name="PART_Button" Grid.Column="1" Focusable="False" HorizontalAlignment="Left" VerticalAlignment="Top" BorderThickness="0" Background="#edf4fa">
- <Image Source="/Resources/Calendar.png" />
- </Button>
- <DatePickerTextBox x:Name="PART_TextBox" Grid.Column="0" Focusable="{TemplateBinding Focusable}" HorizontalContentAlignment="Stretch" Grid.Row="0" VerticalContentAlignment="Stretch"/>
- <Grid x:Name="PART_DisabledVisual" Grid.Column="0" Grid.ColumnSpan="2" IsHitTestVisible="False" Opacity="0" Grid.Row="0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Rectangle Grid.Column="0" Fill="#A5FFFFFF" Grid.Row="0" RadiusX="1" RadiusY="1"/>
- <Rectangle Grid.Column="1" Fill="#A5FFFFFF" Height="18" Margin="3,0,3,0" Grid.Row="0" RadiusX="1" RadiusY="1" Width="19"/>
- <Popup x:Name="PART_Popup" AllowsTransparency="True" Placement="Bottom" PlacementTarget="{Binding ElementName=PART_TextBox}" StaysOpen="False"/>
- </Grid>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <DataTrigger Binding="{Binding Source={x:Static SystemParameters.HighContrast}}" Value="false">
- <Setter Property="Foreground" TargetName="PART_TextBox" Value="{Binding Foreground, RelativeSource={RelativeSource Mode=TemplatedParent}}"/>
- </DataTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--DataGrid Таблица-->
- <Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="{x:Type Button}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Grid>
- <Rectangle x:Name="Border" Fill="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" SnapsToDevicePixels="True"/>
- <Polygon x:Name="Arrow" Fill="Black" HorizontalAlignment="Right" Margin="8,8,3,3" Opacity="0.15" Points="0,10 10,10 10,0" Stretch="Uniform" VerticalAlignment="Bottom"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Stroke" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Fill" TargetName="Border" Value="{DynamicResource {x:Static SystemColors.ControlDarkBrushKey}}"/>
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Visibility" TargetName="Arrow" Value="Collapsed"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="DataGridStyle1" TargetType="{x:Type DataGrid}">
- <Setter Property="Background" Value="#ebf4fc"/>
- <Setter Property="Foreground" Value="#222528"/>
- <Setter Property="FontFamily" Value="Comic Sans Ms"/>
- <Setter Property="FontSize" Value="13"/>
- <Setter Property="BorderBrush" Value="#FF688CAF"/>
- <Setter Property="BorderThickness" Value="3"/>
- <Setter Property="GridLinesVisibility" Value="All"/>
- <Setter Property="HorizontalGridLinesBrush" Value="#3c5f82"/>
- <Setter Property="VerticalGridLinesBrush" Value="#3c5f82"/>
- <Setter Property="HeadersVisibility" Value="Column"/>
- <Setter Property="RowDetailsVisibilityMode" Value="VisibleWhenSelected"/>
- <Setter Property="ScrollViewer.CanContentScroll" Value="False"/>
- <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type DataGrid}">
- <Border Background="{TemplateBinding Background}" CornerRadius="5" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="True">
- <ScrollViewer x:Name="DG_ScrollViewer" Focusable="false">
- <ScrollViewer.Template>
- <ControlTemplate TargetType="{x:Type ScrollViewer}">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <Button Command="{x:Static DataGrid.SelectAllCommand}" Focusable="false" Style="{DynamicResource {ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}}" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.All}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Width="{Binding CellsPanelHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
- <DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Grid.Column="1" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Column}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
- <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}" Grid.ColumnSpan="2" Grid.Row="1"/>
- <ScrollBar x:Name="PART_VerticalScrollBar" Grid.Column="2" Maximum="{TemplateBinding ScrollableHeight}" Orientation="Vertical" Grid.Row="1" Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>
- <Grid Grid.Column="1" Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="{Binding NonFrozenColumnsViewportHorizontalOffset, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <ScrollBar x:Name="PART_HorizontalScrollBar" Grid.Column="1" Maximum="{TemplateBinding ScrollableWidth}" Orientation="Horizontal" Value="{Binding HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
- </Grid>
- </Grid>
- </ControlTemplate>
- </ScrollViewer.Template>
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </ScrollViewer>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true"/>
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
- </MultiTrigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="ColumnHeaderGripperStyle" TargetType="{x:Type Thumb}">
- <Setter Property="Width" Value="8"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Cursor" Value="SizeWE"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Thumb}">
- <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="DataGridColumnHeaderStyle1" TargetType="{x:Type DataGridColumnHeader}">
- <Setter Property="Background" Value="#cae3fc"/>
- <Setter Property="FontWeight" Value="SemiBold"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="MinHeight" Value="30"/>
- <Setter Property="Padding" Value="10 5"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type DataGridColumnHeader}">
- <Grid>
- <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" CornerRadius="5">
- </Border>
- <Grid Margin="{TemplateBinding Padding}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition Width="Auto"/>
- </Grid.ColumnDefinitions>
- <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Grid>
- <Thumb x:Name="PART_LeftHeaderGripper" HorizontalAlignment="Left" Style="{StaticResource ColumnHeaderGripperStyle}"/>
- <Thumb x:Name="PART_RightHeaderGripper" HorizontalAlignment="Right" Style="{StaticResource ColumnHeaderGripperStyle}"/>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#a6cdf5"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="DataGridRowStyle1" TargetType="{x:Type DataGridRow}">
- <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.WindowBrushKey}}"/>
- <Setter Property="SnapsToDevicePixels" Value="true"/>
- <Setter Property="Validation.ErrorTemplate" Value="{x:Null}"/>
- <Setter Property="ValidationErrorTemplate">
- <Setter.Value>
- <ControlTemplate>
- <TextBlock Foreground="Red" Margin="2,0,0,0" Text="!" VerticalAlignment="Center"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type DataGridRow}">
- <Border x:Name="DGR_Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
- <SelectiveScrollingGrid>
- <SelectiveScrollingGrid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- </SelectiveScrollingGrid.ColumnDefinitions>
- <SelectiveScrollingGrid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="Auto"/>
- </SelectiveScrollingGrid.RowDefinitions>
- <DataGridCellsPresenter Grid.Column="1" ItemsPanel="{TemplateBinding ItemsPanel}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- <DataGridDetailsPresenter Grid.Column="1" Grid.Row="1" SelectiveScrollingGrid.SelectiveScrollingOrientation="{Binding AreRowDetailsFrozen, ConverterParameter={x:Static SelectiveScrollingOrientation.Vertical}, Converter={x:Static DataGrid.RowDetailsScrollingConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" Visibility="{TemplateBinding DetailsVisibility}"/>
- <DataGridRowHeader Grid.RowSpan="2" SelectiveScrollingGrid.SelectiveScrollingOrientation="Vertical" Visibility="{Binding HeadersVisibility, ConverterParameter={x:Static DataGridHeadersVisibility.Row}, Converter={x:Static DataGrid.HeadersVisibilityConverter}, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
- </SelectiveScrollingGrid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsNewItem" Value="True">
- <Setter Property="Margin" Value="{Binding NewItemMargin, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="EditTaskButton" TargetType="Button">
- <Setter Property="Background" Value="#a0cdfa"/>
- <Setter Property="Height" Value="40"/>
- <Setter Property="Width" Value="40"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="BorderBrush" Value="Transparent"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Style.Resources>
- <Style TargetType ="Border">
- <Setter Property="CornerRadius" Value="15"/>
- </Style>
- </Style.Resources>
- </Style>
- <!--Кнопки добавить и удалить для задач-->
- <Style x:Key="AddDeleteBtn" TargetType="Button">
- <Setter Property="FontSize" Value="20"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="Foreground" Value="#f8f8ff"/>
- <Setter Property="Background" Value="#52a8ff"/>
- <Setter Property="Height" Value="35"/>
- <Setter Property="Width" Value="200"/>
- <Setter Property="BorderThickness" Value="3"/>
- <Setter Property="BorderBrush" Value="#1f8fff"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
- <Grid>
- <ContentPresenter VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" ContentSource="{TemplateBinding ContentStringFormat}"/>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Resources>
- <Style TargetType ="Border">
- <Setter Property="CornerRadius" Value="10"/>
- </Style>
- </Style.Resources>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#1f8fff"/>
- <Setter Property="BorderBrush" Value="#0075eb"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="ClearSort" TargetType="Button">
- <Setter Property="Background" Value="#d9ebfc"/>
- <Setter Property="BorderThickness" Value="3"/>
- <Setter Property="BorderBrush" Value="#5b86b0"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Style.Resources>
- <Style TargetType ="Border">
- <Setter Property="CornerRadius" Value="10"/>
- </Style>
- </Style.Resources>
- </Style>
- </ResourceDictionary>
|