Ground work for Wino Calendar. (#475)

Wino Calendar abstractions.
This commit is contained in:
Burak Kaan Köse
2024-11-10 23:28:25 +01:00
committed by GitHub
parent a979e8430f
commit d1d6f12f05
486 changed files with 7969 additions and 2708 deletions
+13 -12
View File
@@ -3,17 +3,18 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:Wino.Controls"
xmlns:helpers="using:Wino.Helpers"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
xmlns:coreControls="using:Wino.Core.UWP.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:folders="using:Wino.Core.Domain.Models.Folders"
Title="{x:Bind domain:Translator.MoveMailDialog_Title}"
Style="{StaticResource WinoDialogStyle}"
PrimaryButtonText="{x:Bind domain:Translator.Buttons_Cancel}"
xmlns:domain="using:Wino.Core.Domain"
xmlns:folders="using:Wino.Core.Domain.Models.Folders"
xmlns:helpers="using:Wino.Helpers"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
Title="{x:Bind domain:Translator.MoveMailDialog_Title}"
DefaultButton="Primary"
PrimaryButtonClick="CancelClicked"
PrimaryButtonText="{x:Bind domain:Translator.Buttons_Cancel}"
Style="{StaticResource WinoDialogStyle}"
mc:Ignorable="d">
<ContentDialog.Resources>
@@ -23,12 +24,12 @@
<x:Double x:Key="ContentDialogMaxHeight">756</x:Double>
<DataTemplate x:Key="FolderStructureMenuFlyoutItemTemplate" x:DataType="folders:IMailItemFolder">
<muxc:TreeViewItem ItemsSource="{x:Bind ChildFolders}" IsExpanded="True">
<muxc:TreeViewItem IsExpanded="True" ItemsSource="{x:Bind ChildFolders}">
<StackPanel
Height="32"
Orientation="Horizontal"
Spacing="12">
<controls:WinoFontIcon FontSize="20" Icon="{x:Bind helpers:XamlHelpers.GetSpecialFolderPathIconGeometry(SpecialFolderType)}" />
<coreControls:WinoFontIcon FontSize="20" Icon="{x:Bind helpers:XamlHelpers.GetSpecialFolderPathIconGeometry(SpecialFolderType)}" />
<TextBlock VerticalAlignment="Center" Text="{x:Bind FolderName}" />
</StackPanel>
</muxc:TreeViewItem>
@@ -44,17 +45,17 @@
<TextBlock
x:Name="InvalidFolderText"
Margin="0,0,0,6"
Visibility="Collapsed"
Foreground="{ThemeResource InfoBarWarningSeverityIconBackground}" />
Foreground="{ThemeResource InfoBarWarningSeverityIconBackground}"
Visibility="Collapsed" />
<muxc:TreeView
x:Name="FolderTreeView"
Grid.Row="1"
CanDragItems="False"
CanReorderItems="False"
SelectedItem="{x:Bind SelectedFolder, Mode=TwoWay}"
ItemTemplate="{StaticResource FolderStructureMenuFlyoutItemTemplate}"
ItemsSource="{x:Bind FolderList, Mode=OneWay}"
SelectedItem="{x:Bind SelectedFolder, Mode=TwoWay}"
SelectionMode="Single" />
</Grid>
</ContentDialog>