Calendar improvements.
This commit is contained in:
@@ -327,8 +327,13 @@
|
||||
<TextBlock
|
||||
Grid.Column="4"
|
||||
VerticalAlignment="Center"
|
||||
Text="{x:Bind domain:Translator.CalendarEventCompose_ForWeekdays}" />
|
||||
<ItemsControl Grid.Column="5" ItemsSource="{x:Bind ViewModel.WeekdayOptions}">
|
||||
Text="{x:Bind domain:Translator.CalendarEventCompose_ForWeekdays}"
|
||||
Visibility="{x:Bind ViewModel.IsDailyRecurrenceSelected, Mode=OneWay}" />
|
||||
<ItemsControl
|
||||
Grid.Column="5"
|
||||
IsEnabled="{x:Bind ViewModel.IsDailyRecurrenceSelected, Mode=OneWay}"
|
||||
ItemsSource="{x:Bind ViewModel.WeekdayOptions}"
|
||||
Visibility="{x:Bind ViewModel.IsDailyRecurrenceSelected, Mode=OneWay}">
|
||||
<ItemsControl.ItemsPanel>
|
||||
<ItemsPanelTemplate>
|
||||
<StackPanel Orientation="Horizontal" Spacing="4" />
|
||||
@@ -472,11 +477,13 @@
|
||||
DragLeave="AttachmentsPane_DragLeave"
|
||||
DragOver="AttachmentsPane_DragOver"
|
||||
Drop="AttachmentsPane_Drop"
|
||||
ToolTipService.ToolTip="{x:Bind ViewModel.AttachmentsDisabledTooltipText, Mode=OneWay}"
|
||||
Visibility="{x:Bind AttachmentsToggle.IsChecked, Mode=OneWay}">
|
||||
<StackPanel Spacing="8">
|
||||
<Button
|
||||
HorizontalAlignment="Left"
|
||||
Command="{x:Bind ViewModel.AddAttachmentsCommand}"
|
||||
IsEnabled="{x:Bind ViewModel.CanAddAttachments, Mode=OneWay}"
|
||||
Style="{StaticResource TransparentActionButtonStyle}">
|
||||
<StackPanel Orientation="Horizontal" Spacing="8">
|
||||
<coreControls:WinoFontIcon FontSize="14" Icon="AttachmentNew" />
|
||||
|
||||
@@ -150,6 +150,12 @@ public sealed partial class CalendarEventComposePage : CalendarEventComposePageA
|
||||
|
||||
private void AttachmentsPane_DragOver(object sender, DragEventArgs e)
|
||||
{
|
||||
if (!ViewModel.CanAddAttachments)
|
||||
{
|
||||
e.AcceptedOperation = DataPackageOperation.None;
|
||||
return;
|
||||
}
|
||||
|
||||
e.AcceptedOperation = e.DataView.Contains(StandardDataFormats.StorageItems)
|
||||
? DataPackageOperation.Copy
|
||||
: DataPackageOperation.None;
|
||||
@@ -169,7 +175,7 @@ public sealed partial class CalendarEventComposePage : CalendarEventComposePageA
|
||||
|
||||
private async void AttachmentsPane_Drop(object sender, DragEventArgs e)
|
||||
{
|
||||
if (!e.DataView.Contains(StandardDataFormats.StorageItems))
|
||||
if (!ViewModel.CanAddAttachments || !e.DataView.Contains(StandardDataFormats.StorageItems))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,6 @@
|
||||
<AppBarToggleButton
|
||||
x:Name="EditorThemeToggleButton"
|
||||
IsChecked="{x:Bind WebViewEditor.IsEditorDarkMode, Mode=TwoWay}"
|
||||
Label=""
|
||||
ToolTipService.ToolTip="Toggle editor dark mode">
|
||||
<AppBarToggleButton.Icon>
|
||||
<coreControls:WinoFontIcon Icon="DarkEditor" />
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<TrimmerRootAssembly Include="Google.Apis.Auth" />
|
||||
<TrimmerRootAssembly Include="Google.Apis.Drive.v3" />
|
||||
<TrimmerRootAssembly Include="Google.Apis.Gmail.v1" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user