123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448 |
- <Application x:Class="school.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:school"
- StartupUri="FolderWindows/MainWindow.xaml">
- <Application.Resources>
- <Color x:Key="_mainColorFon" A="255" R="255" G="255" B="255"></Color>
- <Color x:Key="_additionalColorFon" A="255" R="231" G="250" B="191"></Color>
- <Color x:Key="_attentionColor" A="255" R="4" G="180" B="255"></Color>
- <SolidColorBrush x:Key="mainColorFon" Color="{StaticResource _mainColorFon}"></SolidColorBrush>
- <SolidColorBrush x:Key="additionalColorFon" Color="{StaticResource _additionalColorFon}"></SolidColorBrush>
- <SolidColorBrush x:Key="attentionColor" Color="{StaticResource _attentionColor}"></SolidColorBrush>
- <Image x:Key="imgNoPhoto" Source="Resource\noPhoto.png"/>
- <Style TargetType="TextBlock">
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- </Style>
-
- <Style x:Key="usuallyTextBlock" TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="Foreground" Value="LightSlateGray"/>
- <Setter Property="Margin" Value="0 5"/>
- </Style.Setters>
- </Style>
- <Style x:Key="usuallyTextBlockHeader" TargetType="TextBlock">
- <Style.Setters>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="Foreground" Value="{StaticResource attentionColor}"/>
- <Setter Property="Margin" Value="0 5"/>
- </Style.Setters>
- </Style>
- <Style x:Key="usuallyButton" TargetType="Button">
- <Style.Setters>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="MinWidth" Value="150"/>
- <Setter Property="MinHeight" Value="25"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="LightSlateGray"/>
- <Setter Property="BorderBrush" Value="LightSlateGray"/>
- <Setter Property="Margin" Value="0 5"/>
- <Setter Property="Padding" Value="10 5"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border Background="White" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="2" CornerRadius="5">
- <ContentPresenter Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center" TextBlock.FontStretch="{TemplateBinding FontStretch}"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="BorderBrush" Value="{StaticResource attentionColor}"/>
- <Setter Property="Foreground" Value="{StaticResource attentionColor}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="usuallyButtonFill" TargetType="Button">
- <Style.Setters>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="MinWidth" Value="150"/>
- <Setter Property="MinHeight" Value="25"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="White"/>
- <Setter Property="Background" Value="{StaticResource attentionColor}"/>
- <Setter Property="BorderBrush" Value="{StaticResource attentionColor}"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border Background="{TemplateBinding Background}" BorderThickness="0" CornerRadius="5">
- <ContentPresenter Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="LightGray"/>
- <Setter Property="Foreground" Value="{StaticResource attentionColor}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="usuallyButtonNoFill" TargetType="Button">
- <Style.Setters>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="Foreground" Value="LightSlateGray"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="Padding" Value="5 2"/>
- <Setter Property="Margin" Value="0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border Background="{TemplateBinding Background}" BorderThickness="0">
- <ContentPresenter Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="{StaticResource attentionColor}"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="usuallyPasswordBox" TargetType="PasswordBox">
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="Height" Value="Auto"/>
- <Setter Property="Width" Value="Auto"/>
- <Setter Property="Background" Value="white"/>
- <Setter Property="Foreground" Value="LightSlateGray"/>
- <Setter Property="Padding" Value="0 5 5 4"/>
- <Setter Property="Grid.Column" Value="1"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Cursor" Value="IBeam"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type PasswordBox}">
- <Border x:Name="TxtBorder"
- BorderBrush="LightSlateGray"
- BorderThickness="1"
- CornerRadius="5"
- SnapsToDevicePixels="True">
- <Grid Margin="{TemplateBinding Padding}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <ScrollViewer x:Name="PART_ContentHost"
- Focusable="False"
- Grid.Column="1"
- Margin="5 0 0 0"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden"/>
- <Label x:Name="Watermark"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- Foreground="LightSlateGray"
- Visibility="Collapsed"
- Padding="9 0 20 0"
- Content="{TemplateBinding Tag}"
- Grid.Column="1"/>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsKeyboardFocused" Value="False">
- <Setter Property="Visibility" Value="Visible" TargetName="Watermark"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Control.Foreground" Value="{StaticResource attentionColor}"/>
- <Setter Property="Foreground" TargetName="Watermark" Value="{StaticResource attentionColor}"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="True">
- <Setter Property="Control.Foreground" Value="{StaticResource attentionColor}"/>
- <Setter Property="Foreground" TargetName="Watermark" Value="#0E498B"/>
- <Setter Property="Visibility" Value="Collapsed" TargetName="Watermark"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="usuallyGroupBox" TargetType="GroupBox">
- <Style.Setters>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="FontSize" Value="15"/>
- <Setter Property="Foreground" Value="{StaticResource attentionColor}"/>
- <Setter Property="BorderBrush" Value="Transparent"/>
- <Setter Property="Padding" Value="5"/>
- <Setter Property="Margin" Value="0 2.5"/>
- </Style.Setters>
- </Style>
- <Style x:Key="usuallyRadioButton" TargetType="RadioButton">
- <Style.Setters>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="LightSlateGray"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Margin" Value="0 1.5"/>
- </Style.Setters>
- </Style>
- <ControlTemplate x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition Width="25"/>
- </Grid.ColumnDefinitions>
- <Border Grid.ColumnSpan="2" SnapsToDevicePixels="true">
- </Border>
- <Border Grid.Column="1">
- <Path x:Name="Arrow"
- Data="F1 M 0,0 L 2.667,2.66665 L 5.3334,0 L 5.3334,-1.78168 L 2.6667,0.88501 L0,-1.78168 L0,0 Z"
- Fill="LightSlateGray"
- Stretch="Fill"
- Height="7"
- Width="10"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"/>
- </Border>
- </Grid>
- </ControlTemplate>
- <Style x:Key="usuallyComboBox" TargetType="ComboBox">
- <Setter Property="Height" Value="30"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="LightSlateGray"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontWeight" Value="Regular"/>
- <Setter Property="Cursor" Value="Hand"/>
- <Setter Property="Margin" Value="0 0 0 0"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ComboBox}">
- <Border CornerRadius="5" BorderBrush="{StaticResource attentionColor}" BorderThickness="1" Padding="5"
- Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
- <Grid>
- <ToggleButton x:Name="ToggleButton"
- Template="{StaticResource ComboBoxToggleButton}"
- Grid.Column="2"
- Focusable="False"
- ClickMode="Press"
- IsChecked="{Binding IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"/>
- <ContentPresenter x:Name="ContentSite"
- IsHitTestVisible="False"
- Content="{TemplateBinding SelectedItem}"
- ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
- ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
- Margin="11 0 25 0"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- IsEnabled="True"/>
- <Label x:Name="Watermark"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- Foreground="{TemplateBinding Foreground}"
- Visibility="Collapsed"
- Padding="10 0 0 0"
- Content="{TemplateBinding Tag}"
- FontSize="{TemplateBinding FontSize}"/>
- <Popup x:Name="Popup" Placement="Bottom"
- IsOpen="{TemplateBinding IsDropDownOpen}"
- AllowsTransparency="True"
- Focusable="False"
- PopupAnimation="Scroll"
- Margin="5 10 0 0">
- <Grid x:Name="DropDown"
- SnapsToDevicePixels="False"
- MinWidth="{TemplateBinding ActualWidth}"
- MaxHeight="{TemplateBinding MaxDropDownHeight}">
- <Border x:Name="DropDownBorder"
- BorderThickness="1"
- BorderBrush="LightSlateGray"
- Background="White"
- Margin="5 10 0 0">
- <ScrollViewer Margin="0"
- SnapsToDevicePixels="True"
- OverridesDefaultStyle="True"
- Foreground="{TemplateBinding Foreground}"
- FontWeight="Regular"
- FontSize="{TemplateBinding FontSize}">
- <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Continue" Margin="0">
- </StackPanel>
- </ScrollViewer>
- </Border>
- </Grid>
- </Popup>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="Text" Value=""/>
- </MultiTrigger.Conditions>
- <Setter Property="Visibility" Value="Visible" TargetName="Watermark"/>
- </MultiTrigger>
- <Trigger Property="HasItems" Value="False">
- <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95"/>
- </Trigger>
- <Trigger Property="IsGrouping" Value="True">
- <Setter Property="ScrollViewer.CanContentScroll" Value="True"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <ImageBrush x:Key="ib_search_grey" ImageSource="/Resource/ic_search_grey.png"/>
- <ImageBrush x:Key="ib_search_blue" ImageSource="/Resource/ic_search_blue.png"/>
- <Style x:Key="usuallyTextBloxSearch" TargetType="TextBox">
- <Style.Setters>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontWeight" Value="Regular"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Height" Value="35"/>
- <Setter Property="Width" Value="235"/>
- <Setter Property="Background" Value="white"/>
- <Setter Property="Foreground" Value="{StaticResource attentionColor}"/>
- <Setter Property="Grid.Column" Value="1"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Cursor" Value="IBeam"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="TxtBorder"
- BorderBrush="{StaticResource attentionColor}"
- BorderThickness="1"
- CornerRadius="5"
- SnapsToDevicePixels="True">
- <Grid Margin="{TemplateBinding Padding}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="25"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <ScrollViewer x:Name="PART_ContentHost"
- Focusable="False"
- Grid.Column="1"
- Margin="5 0 0 0"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Hidden"/>
- <Border x:Name="ic"
- Background="{StaticResource ib_search_grey}"
- BorderThickness="0"
- Height="15"
- Width="15"
- Margin="5 0 0 3"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- ToolTip="Name"
- Cursor="Arrow"
- Grid.Column="0"/>
- <Label x:Name="Watermark"
- FontSize="15"
- VerticalAlignment="Center"
- HorizontalAlignment="Left"
- Foreground="LightSlateGray"
- Visibility="Collapsed"
- Padding="5 0 20 0"
- Content="{TemplateBinding Tag}"
- Grid.Column="1"/>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="Text" Value=""/>
- </MultiTrigger.Conditions>
- <Setter Property="Visibility" Value="Visible" TargetName="Watermark"/>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <Style x:Key="usuallyTextBlox" TargetType="TextBox">
- <Style.Setters>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontWeight" Value="Regular"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="MinHeight" Value="50"/>
- <Setter Property="Width" Value="300"/>
- <Setter Property="TextWrapping" Value="Wrap"/>
- <Setter Property="Background" Value="white"/>
- <Setter Property="Foreground" Value="{StaticResource attentionColor}"/>
- <Setter Property="Grid.Column" Value="1"/>
- <Setter Property="VerticalContentAlignment" Value="Top"/>
- <Setter Property="Cursor" Value="IBeam"/>
- <Setter Property="HorizontalAlignment" Value="Left"/>
- <Setter Property="VerticalAlignment" Value="Top"/>
- <Setter Property="VerticalContentAlignment" Value="Top"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Border x:Name="TxtBorder"
- BorderBrush="LightSlateGray"
- BorderThickness="1"
- CornerRadius="5"
- SnapsToDevicePixels="True" Height="{TemplateBinding Height}">
- <Grid Margin="{TemplateBinding Padding}">
- <ScrollViewer x:Name="PART_ContentHost"
- Focusable="False"
- Margin="5 0 0 0"
- HorizontalScrollBarVisibility="Hidden"
- VerticalScrollBarVisibility="Auto" />
- <Label x:Name="Watermark"
- FontSize="14"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- Foreground="LightSlateGray"
- Visibility="Collapsed"
- Padding="5 0 20 0"
- Content="{TemplateBinding Tag}"
- Grid.Column="1"/>
- </Grid>
- </Border>
- <ControlTemplate.Triggers>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="Text" Value=""/>
- </MultiTrigger.Conditions>
- <Setter Property="Visibility" Value="Visible" TargetName="Watermark"/>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style.Setters>
- </Style>
- <Style TargetType="DatePicker">
- <Style.Setters>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontWeight" Value="Regular"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="BorderBrush" Value="LightSlateGray"/>
- </Style.Setters>
- </Style>
- </Application.Resources>
- </Application>
|