/
WorkerTime
/
WorkerTimeDiplom
Обзор
Документация
Войти
/
WorkerTime
/
WorkerTimeDiplom
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
App.xaml
42 строки
2 KB
nikit
Логирование, автосохранение, восстановление пароля
05 июн 2026, 19:24
05 июн 2026, 19:24
715eb3d
Код
Авторство
О чём код?
<Application x:Class="WorkerTime.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:WorkerTime" xmlns:vm="clr-namespace:WorkerTime.ViewModels" xmlns:v="clr-namespace:WorkerTime.Views"> <Application.Resources> <Style x:Key="MenuButtonStyle" TargetType="Button"> <Setter Property="Background" Value="Transparent"/> <Setter Property="Foreground" Value="White"/> <Setter Property="BorderThickness" Value="0"/> <Setter Property="Height" Value="50"/> <Setter Property="Padding" Value="15,0"/> <Setter Property="Cursor" Value="Hand"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button"> <Border Background="{TemplateBinding Background}" BorderThickness="0" Padding="{TemplateBinding Padding}"> <ContentPresenter VerticalAlignment="Center" HorizontalAlignment="Center"/> </Border> </ControlTemplate> </Setter.Value> </Setter> <Style.Triggers> <Trigger Property="IsMouseOver" Value="True"> <Setter Property="Background" Value="#3f3353"/> </Trigger> </Style.Triggers> </Style> <DataTemplate DataType="{x:Type vm:EmployeesViewModel}"> <v:EmployeesView/> </DataTemplate> <DataTemplate DataType="{x:Type vm:WorkRecordsViewModel}"> <v:WorkRecordsView/> </DataTemplate> <DataTemplate DataType="{x:Type vm:SettingsViewModel}"> <v:SettingsView/> </DataTemplate> </Application.Resources> </Application>