Calendar rendering implementation.

This commit is contained in:
Burak Kaan Köse
2026-03-23 14:56:36 +01:00
parent 8586d0ef54
commit 1adba271e2
32 changed files with 11146 additions and 846 deletions
@@ -1,23 +0,0 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:Wino.Calendar.Controls">
<!-- Left day header DayHeaderControl -->
<Style TargetType="controls:DayHeaderControl">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:DayHeaderControl">
<Grid>
<TextBlock
x:Name="PART_DayHeaderTextBlock"
HorizontalAlignment="Center"
VerticalAlignment="Top"
FontSize="12" />
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
@@ -2,8 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:Wino.Calendar.Controls"
xmlns:controls1="using:Wino.Mail.WinUI.Controls"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls">
xmlns:controls1="using:Wino.Mail.WinUI.Controls">
<Style TargetType="controls:WinoCalendarTypeSelectorControl">
<Style.Setters>
@@ -16,7 +15,6 @@
DefaultLabelPosition="Right">
<CommandBar.PrimaryCommands>
<!-- Today -->
<AppBarButton
x:Name="PART_TodayButton"
Foreground="{ThemeResource ApplicationForegroundThemeBrush}"
@@ -28,8 +26,6 @@
<AppBarSeparator />
<!-- Day -->
<!-- TODO: Specific days -->
<AppBarToggleButton
x:Name="PART_DayToggle"
Foreground="{ThemeResource ApplicationForegroundThemeBrush}"
@@ -39,9 +35,6 @@
</AppBarToggleButton.Icon>
</AppBarToggleButton>
<!-- Week -->
<!-- TODO: Work week -->
<AppBarToggleButton
x:Name="PART_WeekToggle"
Foreground="{ThemeResource ApplicationForegroundThemeBrush}"
@@ -51,7 +44,15 @@
</AppBarToggleButton.Icon>
</AppBarToggleButton>
<!-- Month -->
<AppBarToggleButton
x:Name="PART_WorkWeekToggle"
Foreground="{ThemeResource ApplicationForegroundThemeBrush}"
Label="Work Week">
<AppBarToggleButton.Icon>
<controls1:WinoFontIcon Icon="CalendarWorkWeek" />
</AppBarToggleButton.Icon>
</AppBarToggleButton>
<AppBarToggleButton
x:Name="PART_MonthToggle"
Foreground="{ThemeResource ApplicationForegroundThemeBrush}"
@@ -60,14 +61,11 @@
<controls1:WinoFontIcon FontSize="44" Icon="CalendarMonth" />
</AppBarToggleButton.Icon>
</AppBarToggleButton>
</CommandBar.PrimaryCommands>
</CommandBar>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style.Setters>
</Style>
</ResourceDictionary>