2024-11-12 12:21:29 +04:00
|
|
|
<Application x:Class="EmployeeManagmentView.App"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2024-11-26 21:24:08 +04:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
2024-11-12 12:21:29 +04:00
|
|
|
<Application.Resources>
|
2024-11-26 22:35:12 +04:00
|
|
|
<!-- Стиль для закругленных кнопок -->
|
|
|
|
<Style x:Key="RoundedButtonStyle" TargetType="Button">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
|
<Grid>
|
|
|
|
<!-- Тень кнопки -->
|
|
|
|
<Border Background="{TemplateBinding Background}"
|
|
|
|
CornerRadius="15"
|
|
|
|
BorderBrush="Transparent"
|
|
|
|
BorderThickness="0"
|
|
|
|
x:Name="ButtonBorder">
|
|
|
|
<Border.Effect>
|
|
|
|
<DropShadowEffect Color="Black" BlurRadius="10" ShadowDepth="2" Opacity="0.4" />
|
|
|
|
</Border.Effect>
|
|
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<!-- Анимация цвета при наведении -->
|
|
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
|
|
<Trigger.EnterActions>
|
|
|
|
<BeginStoryboard>
|
|
|
|
<Storyboard>
|
|
|
|
<ColorAnimation Storyboard.TargetName="ButtonBorder"
|
|
|
|
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
|
|
|
|
To="#0066CC" Duration="0:0:0.2" />
|
|
|
|
</Storyboard>
|
|
|
|
</BeginStoryboard>
|
|
|
|
</Trigger.EnterActions>
|
|
|
|
<Trigger.ExitActions>
|
|
|
|
<BeginStoryboard>
|
|
|
|
<Storyboard>
|
|
|
|
<ColorAnimation Storyboard.TargetName="ButtonBorder"
|
|
|
|
Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
|
|
|
|
To="#004890" Duration="0:0:0.2" />
|
|
|
|
</Storyboard>
|
|
|
|
</BeginStoryboard>
|
|
|
|
</Trigger.ExitActions>
|
|
|
|
</Trigger>
|
|
|
|
|
|
|
|
<!-- Анимация сжатия при нажатии -->
|
|
|
|
<Trigger Property="IsPressed" Value="True">
|
|
|
|
<Setter Property="RenderTransform" TargetName="ButtonBorder">
|
|
|
|
<Setter.Value>
|
|
|
|
<ScaleTransform ScaleX="0.95" ScaleY="0.95" />
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
<Setter TargetName="ButtonBorder" Property="Effect">
|
|
|
|
<Setter.Value>
|
|
|
|
<DropShadowEffect Color="Black" BlurRadius="15" ShadowDepth="0" Opacity="0.6" />
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!-- Стиль для закругленного TextBox -->
|
|
|
|
<Style x:Key="RoundedTextBoxStyle" TargetType="TextBox">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="TextBox">
|
|
|
|
<Border Background="White"
|
|
|
|
CornerRadius="15"
|
|
|
|
BorderBrush="Gray"
|
|
|
|
BorderThickness="1">
|
|
|
|
<ScrollViewer Margin="5" x:Name="PART_ContentHost"/>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
<!-- Стиль для закругленного ComboBox -->
|
|
|
|
<Style x:Key="RoundedComboBoxStyle" TargetType="ComboBox">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="ComboBox">
|
|
|
|
<Border Background="White"
|
|
|
|
CornerRadius="15"
|
|
|
|
BorderBrush="Gray"
|
|
|
|
BorderThickness="1">
|
|
|
|
<Grid>
|
|
|
|
<ToggleButton Grid.Column="2" Focusable="False"
|
|
|
|
ClickMode="Press" />
|
|
|
|
<ContentPresenter />
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
|
2024-11-12 12:21:29 +04:00
|
|
|
</Application.Resources>
|
|
|
|
</Application>
|