corp-app/CORP-MAUI/Controls/DesktopSidebar.xaml

153 lines
8.7 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="CORP_MAUI.Controls.DesktopSidebar"
WidthRequest="200">
<!-- Левая боковая панель навигации -->
<Border BackgroundColor="White" Stroke="Transparent">
<ScrollView>
<VerticalStackLayout Padding="10,20" Spacing="2">
<!-- Профиль -->
<Border x:Name="ProfileItem" StrokeShape="RoundRectangle 8" Stroke="Transparent" BackgroundColor="Transparent" Padding="12,10">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnProfileClicked"/>
</Border.GestureRecognizers>
<HorizontalStackLayout Spacing="12">
<Image Source="profile" HeightRequest="20" WidthRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#0D6EFD"/>
</Image.Behaviors>
</Image>
<Label Text="Профиль" TextColor="#333333" FontSize="15" VerticalOptions="Center"/>
</HorizontalStackLayout>
</Border>
<!-- Новости -->
<Border x:Name="NewsItem" StrokeShape="RoundRectangle 8" Stroke="Transparent" BackgroundColor="Transparent" Padding="12,10">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnNewsClicked"/>
</Border.GestureRecognizers>
<HorizontalStackLayout Spacing="12">
<Image Source="feed" HeightRequest="20" WidthRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#0D6EFD"/>
</Image.Behaviors>
</Image>
<Label Text="Новости" TextColor="#333333" FontSize="15" VerticalOptions="Center"/>
</HorizontalStackLayout>
</Border>
<!-- Сотрудники -->
<Border x:Name="EmployeesItem" StrokeShape="RoundRectangle 8" Stroke="Transparent" BackgroundColor="Transparent" Padding="12,10">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnEmployeesClicked"/>
</Border.GestureRecognizers>
<HorizontalStackLayout Spacing="12">
<Image Source="employees" HeightRequest="20" WidthRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#0D6EFD"/>
</Image.Behaviors>
</Image>
<Label Text="Сотрудники" TextColor="#333333" FontSize="15" VerticalOptions="Center"/>
</HorizontalStackLayout>
</Border>
<!-- Отделы -->
<Border x:Name="DepartmentsItem" StrokeShape="RoundRectangle 8" Stroke="Transparent" BackgroundColor="Transparent" Padding="12,10">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnDepartmentsClicked"/>
</Border.GestureRecognizers>
<HorizontalStackLayout Spacing="12">
<Image Source="department" HeightRequest="20" WidthRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#0D6EFD"/>
</Image.Behaviors>
</Image>
<Label Text="Отделы" TextColor="#333333" FontSize="15" VerticalOptions="Center"/>
</HorizontalStackLayout>
</Border>
<!-- Заявления -->
<Border x:Name="RequestsItem" StrokeShape="RoundRectangle 8" Stroke="Transparent" BackgroundColor="Transparent" Padding="12,10">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnRequestsClicked"/>
</Border.GestureRecognizers>
<HorizontalStackLayout Spacing="12">
<Image Source="statements" HeightRequest="20" WidthRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#0D6EFD"/>
</Image.Behaviors>
</Image>
<Label Text="Заявления" TextColor="#333333" FontSize="15" VerticalOptions="Center"/>
</HorizontalStackLayout>
</Border>
<!-- Чаты -->
<Border x:Name="ChatsItem" StrokeShape="RoundRectangle 8" Stroke="Transparent" BackgroundColor="Transparent" Padding="12,10">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnChatsClicked"/>
</Border.GestureRecognizers>
<HorizontalStackLayout Spacing="12">
<Image Source="chats" HeightRequest="20" WidthRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#0D6EFD"/>
</Image.Behaviors>
</Image>
<Label Text="Чаты" TextColor="#333333" FontSize="15" VerticalOptions="Center"/>
</HorizontalStackLayout>
</Border>
<!-- Документы -->
<Border x:Name="DocumentsItem" StrokeShape="RoundRectangle 8" Stroke="Transparent" BackgroundColor="Transparent" Padding="12,10">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnDocumentsClicked"/>
</Border.GestureRecognizers>
<HorizontalStackLayout Spacing="12">
<Image Source="documents" HeightRequest="20" WidthRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#0D6EFD"/>
</Image.Behaviors>
</Image>
<Label Text="Документы" TextColor="#333333" FontSize="15" VerticalOptions="Center"/>
</HorizontalStackLayout>
</Border>
<!-- Финансы -->
<Border x:Name="FinanceItem" StrokeShape="RoundRectangle 8" Stroke="Transparent" BackgroundColor="Transparent" Padding="12,10">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnFinanceClicked"/>
</Border.GestureRecognizers>
<HorizontalStackLayout Spacing="12">
<Image Source="finances" HeightRequest="20" WidthRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#0D6EFD"/>
</Image.Behaviors>
</Image>
<Label Text="Финансы" TextColor="#333333" FontSize="15" VerticalOptions="Center"/>
</HorizontalStackLayout>
</Border>
<!-- Настройки -->
<Border x:Name="SettingsItem" StrokeShape="RoundRectangle 8" Stroke="Transparent" BackgroundColor="Transparent" Padding="12,10">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnSettingsClicked"/>
</Border.GestureRecognizers>
<HorizontalStackLayout Spacing="12">
<Image Source="settings" HeightRequest="20" WidthRequest="20">
<Image.Behaviors>
<toolkit:IconTintColorBehavior TintColor="#0D6EFD"/>
</Image.Behaviors>
</Image>
<Label Text="Настройки" TextColor="#333333" FontSize="15" VerticalOptions="Center"/>
</HorizontalStackLayout>
</Border>
</VerticalStackLayout>
</ScrollView>
</Border>
</ContentView>