123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <Application x:Class="Sessioa.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:Sessioa"
- StartupUri="MainWindow.xaml">
- <Application.Resources>
- <Style x:Key="TextBox" TargetType="{x:Type TextBox}">
- <Setter Property="Background" Value="#f8f8ff"/>
- <Setter Property="Foreground" Value="Black"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontSize" Value="16"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="BorderBrush" Value="#498C51"/>
- <Setter Property="SelectionOpacity" Value="1"/>
- <Setter Property="Cursor" Value="IBeam"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type TextBox}">
- <Grid>
- <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="3" SnapsToDevicePixels="True">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="11"/>
- <ColumnDefinition/>
- <ColumnDefinition Width="11"/>
- </Grid.ColumnDefinitions>
- <ScrollViewer x:Name="PART_ContentHost" Grid.Column="1" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" Focusable="False"/>
- <TextBlock x:Name="Text" Foreground="#696969" Grid.Column="1" VerticalAlignment="Center" FontFamily="Comic Sans MS" FontSize="16" Text="{TemplateBinding DataContext}"/>
- </Grid>
- </Border>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" TargetName="Border" Value="#f8f8ff"/>
- <Setter Property="BorderBrush" TargetName="Border" Value="#498C51"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="True">
- <Setter Property="Visibility" TargetName="Text" Value="Collapsed"/>
- <Setter Property="Background" TargetName="Border" Value="#f8f8ff"/>
- <Setter Property="BorderBrush" TargetName="Border" Value="#498C51"/>
- </Trigger>
- <Trigger Property="IsKeyboardFocused" Value="False">
- <Setter Property="Visibility" TargetName="Text" Value="Collapsed"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="Text" Value=""/>
- <Condition Property="IsKeyboardFocused" Value="True"/>
- </MultiTrigger.Conditions>
- <Setter Property="Visibility" TargetName="Text" Value="Collapsed"/>
- </MultiTrigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="Text" Value=""/>
- <Condition Property="IsKeyboardFocused" Value="False"/>
- </MultiTrigger.Conditions>
- <Setter Property="Visibility" TargetName="Text" Value="Visible"/>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ButtonSt" TargetType="{x:Type Button}">
- <Setter Property="Background" Value="#76E383"/>
- <Setter Property="BorderBrush" Value="#498C51"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontSize" Value="16"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="5" Padding="5">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Background" Value="#498C51"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#00b34a"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ButtonAct" TargetType="{x:Type Button}">
- <Setter Property="Background" Value="#498C51"/>
- <Setter Property="BorderBrush" Value="#00b34a"/>
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontSize" Value="16"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="5" Padding="5">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#00b34a"/>
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter Property="Background" Value="#76E383"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="TextBlockMain" TargetType="{x:Type TextBlock}">
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontSize" Value="20"/>
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- </Style>
- <Style x:Key="TextBlockBold" TargetType="{x:Type TextBlock}">
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontSize" Value="16"/>
- <Setter Property="FontWeight" Value="Bold"/>
- </Style>
- <Style x:Key="TextBlock" TargetType="{x:Type TextBlock}">
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontSize" Value="16"/>
- <Setter Property="FontWeight" Value="Light"/>
- </Style>
-
- </Application.Resources>
- </Application>
|