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

97 lines
5.6 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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.DesktopCalendarPanel"
WidthRequest="280">
<!-- Правая панель с календарём -->
<Border BackgroundColor="White" Stroke="Transparent" Padding="15">
<ScrollView>
<VerticalStackLayout Spacing="15">
<!-- Заголовок -->
<Grid ColumnDefinitions="*,Auto">
<Label Grid.Column="0" Text="Календарь" FontSize="18" FontAttributes="Bold" TextColor="#333333"/>
<HorizontalStackLayout Grid.Column="1" Spacing="5">
<Label Text="Событие" TextColor="#0D6EFD" FontSize="14" VerticalOptions="Center"/>
<Border StrokeShape="RoundRectangle 12" BackgroundColor="#0D6EFD"
HeightRequest="24" WidthRequest="24">
<Label Text="+" TextColor="White" FontSize="16"
HorizontalOptions="Center" VerticalOptions="Center"/>
</Border>
</HorizontalStackLayout>
</Grid>
<!-- Фильтр -->
<HorizontalStackLayout Spacing="5">
<Label Text="Компания" TextColor="#666666" FontSize="13"/>
<Label Text="▼" TextColor="#666666" FontSize="10"/>
</HorizontalStackLayout>
<!-- Навигация по месяцам -->
<Grid ColumnDefinitions="Auto,*,Auto">
<Label Grid.Column="0" Text="‹" FontSize="20" TextColor="#0D6EFD">
<Label.GestureRecognizers>
<TapGestureRecognizer Tapped="OnPreviousMonthClicked"/>
</Label.GestureRecognizers>
</Label>
<Label x:Name="MonthYearLabel" Grid.Column="1" Text="Январь 2026"
FontSize="16" FontAttributes="Bold" TextColor="#333333"
HorizontalOptions="Center"/>
<Label Grid.Column="2" Text="›" FontSize="20" TextColor="#0D6EFD">
<Label.GestureRecognizers>
<TapGestureRecognizer Tapped="OnNextMonthClicked"/>
</Label.GestureRecognizers>
</Label>
<Border Grid.Column="2" StrokeShape="RoundRectangle 15"
BackgroundColor="#0D6EFD" Padding="12,6" Margin="20,0,0,0">
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="OnTodayClicked"/>
</Border.GestureRecognizers>
<Label Text="Сегодня" TextColor="White" FontSize="12"/>
</Border>
</Grid>
<!-- Дни недели -->
<Grid ColumnDefinitions="*,*,*,*,*,*,*" ColumnSpacing="2">
<Label Grid.Column="0" Text="пн" TextColor="#999999" FontSize="12" HorizontalOptions="Center"/>
<Label Grid.Column="1" Text="вт" TextColor="#999999" FontSize="12" HorizontalOptions="Center"/>
<Label Grid.Column="2" Text="ср" TextColor="#999999" FontSize="12" HorizontalOptions="Center"/>
<Label Grid.Column="3" Text="чт" TextColor="#999999" FontSize="12" HorizontalOptions="Center"/>
<Label Grid.Column="4" Text="пт" TextColor="#999999" FontSize="12" HorizontalOptions="Center"/>
<Label Grid.Column="5" Text="сб" TextColor="#0D6EFD" FontSize="12" HorizontalOptions="Center"/>
<Label Grid.Column="6" Text="вс" TextColor="#0D6EFD" FontSize="12" HorizontalOptions="Center"/>
</Grid>
<!-- Сетка календаря -->
<Grid x:Name="CalendarGrid" RowDefinitions="35,35,35,35,35,35"
ColumnDefinitions="*,*,*,*,*,*,*" RowSpacing="2" ColumnSpacing="2">
<!-- Дни будут добавлены программно -->
</Grid>
<!-- Разделитель -->
<BoxView HeightRequest="1" BackgroundColor="#EEEEEE" Margin="0,10"/>
<!-- События на неделе -->
<Grid ColumnDefinitions="*,Auto">
<Label Grid.Column="0" Text="На этой неделе" TextColor="#666666" FontSize="13"/>
<Label x:Name="WeekRangeLabel" Grid.Column="1" Text="19 января – 25 января"
TextColor="#666666" FontSize="13"/>
</Grid>
<!-- Список событий -->
<VerticalStackLayout x:Name="EventsList" Spacing="8">
<!-- Пример события -->
<HorizontalStackLayout Spacing="8">
<Label Text="🎂" FontSize="14"/>
<Label Text="День рождения Ивана Иванова" TextColor="#333333" FontSize="13"/>
</HorizontalStackLayout>
</VerticalStackLayout>
</VerticalStackLayout>
</ScrollView>
</Border>
</ContentView>