407 lines
33 KiB
XML
407 lines
33 KiB
XML
<abstract:AppShellAbstract
|
|
x:Class="Wino.Calendar.Views.AppShell"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:abstract="using:Wino.Calendar.Views.Abstract"
|
|
xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals"
|
|
xmlns:animations="using:CommunityToolkit.WinUI.Animations"
|
|
xmlns:calendarControls="using:Wino.Calendar.Controls"
|
|
xmlns:communityControls="using:CommunityToolkit.WinUI.Controls"
|
|
xmlns:coreControls="using:Wino.Core.UWP.Controls"
|
|
xmlns:coreSelectors="using:Wino.Core.UWP.Selectors"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:data="using:Wino.Calendar.ViewModels.Data"
|
|
xmlns:domain="using:Wino.Core.Domain"
|
|
xmlns:helpers="using:Wino.Helpers"
|
|
xmlns:local="using:Wino.Calendar.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
|
muxc:BackdropMaterial.ApplyToRootOrPageBackground="{ThemeResource UseMica}"
|
|
mc:Ignorable="d">
|
|
|
|
<Page.Resources>
|
|
<coreSelectors:NavigationMenuTemplateSelector
|
|
x:Key="NavigationMenuTemplateSelector"
|
|
AccountManagementTemplate="{StaticResource ManageAccountsTemplate}"
|
|
RatingItemTemplate="{StaticResource RatingItemTemplate}"
|
|
SeperatorTemplate="{StaticResource SeperatorTemplate}"
|
|
SettingsItemTemplate="{StaticResource SettingsItemTemplate}" />
|
|
|
|
<Style
|
|
x:Key="CalendarNavigationButtonStyle"
|
|
BasedOn="{StaticResource DefaultButtonStyle}"
|
|
TargetType="Button">
|
|
<Setter Property="Margin" Value="0,4,0,0" />
|
|
<Setter Property="Padding" Value="8,4,8,6" />
|
|
<Setter Property="CornerRadius" Value="6" />
|
|
<Setter Property="Width" Value="40" />
|
|
</Style>
|
|
</Page.Resources>
|
|
|
|
<Grid
|
|
x:Name="RootGrid"
|
|
Padding="0"
|
|
ColumnSpacing="0"
|
|
RowSpacing="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="48" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="48" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- CoreWindowText="{x:Bind ViewModel.StatePersistenceService.CoreWindowTitle, Mode=OneWay}" -->
|
|
<coreControls:WinoAppTitleBar
|
|
x:Name="RealAppBar"
|
|
Grid.ColumnSpan="2"
|
|
BackButtonClicked="AppBarBackButtonClicked"
|
|
Canvas.ZIndex="150"
|
|
ConnectionStatus="{x:Bind ViewModel.ActiveConnectionStatus, Mode=OneWay}"
|
|
CoreWindowText="Wino Calendar"
|
|
IsBackButtonVisible="{x:Bind ViewModel.StatePersistenceService.IsBackButtonVisible, Mode=OneWay}"
|
|
IsNavigationPaneOpen="{x:Bind MainSplitView.IsPaneOpen, Mode=TwoWay}"
|
|
NavigationViewDisplayMode="{x:Bind helpers:XamlHelpers.NavigationViewDisplayModeConverter(MainSplitView.DisplayMode), Mode=OneWay}"
|
|
OpenPaneLength="{x:Bind ViewModel.StatePersistenceService.OpenPaneLength, Mode=OneWay}"
|
|
ReconnectCommand="{x:Bind ViewModel.ReconnectServerCommand}"
|
|
ShrinkShellContentOnExpansion="False"
|
|
SystemReserved="180">
|
|
<coreControls:WinoAppTitleBar.ShellFrameContent>
|
|
<Grid Margin="4,0,0,0" ColumnSpacing="12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid
|
|
x:Name="DragArea"
|
|
Grid.ColumnSpan="3"
|
|
Background="Transparent" />
|
|
|
|
<Grid x:Name="ShellContentArea" ColumnSpacing="12">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="3*" />
|
|
<ColumnDefinition Width="7*" />
|
|
</Grid.ColumnDefinitions>
|
|
<AutoSuggestBox
|
|
x:Name="SearchBox"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
BorderBrush="Transparent"
|
|
IsTabStop="False"
|
|
PlaceholderText="Search" />
|
|
|
|
<StackPanel
|
|
x:Name="NavigationTitleStack"
|
|
Grid.Column="1"
|
|
Margin="0,0,12,4"
|
|
Orientation="Horizontal"
|
|
Spacing="6">
|
|
<Button
|
|
x:Name="PreviousDateButton"
|
|
Click="PreviousDateClicked"
|
|
Style="{StaticResource CalendarNavigationButtonStyle}">
|
|
<PathIcon x:Name="PreviousDateButtonPathIcon" Data="F1 M 8.72 18.599998 C 8.879999 18.733334 9.059999 18.799999 9.26 18.799999 C 9.459999 18.799999 9.633332 18.719999 9.78 18.559999 C 9.926666 18.4 10 18.219999 10 18.019999 C 10 17.82 9.92 17.653332 9.76 17.52 L 4.52 12.559999 L 17.24 12.559999 C 17.453333 12.559999 17.633331 12.486667 17.779999 12.339999 C 17.926666 12.193334 18 12.013333 18 11.799999 C 18 11.586666 17.926666 11.406667 17.779999 11.259999 C 17.633331 11.113333 17.453333 11.039999 17.24 11.039999 L 4.52 11.039999 L 9.76 6.08 C 9.973333 5.893333 10.046666 5.653332 9.98 5.359999 C 9.913333 5.066666 9.74 4.880001 9.46 4.799999 C 9.179999 4.720001 8.933332 4.786667 8.72 5 L 2.32 11.08 C 2.16 11.24 2.053333 11.426666 2 11.639999 C 1.973333 11.746666 1.973333 11.853333 2 11.959999 C 2.053333 12.173333 2.16 12.360001 2.32 12.52 Z " />
|
|
</Button>
|
|
|
|
<Button
|
|
x:Name="NextDateButton"
|
|
Click="NextDateClicked"
|
|
Style="{StaticResource CalendarNavigationButtonStyle}">
|
|
<PathIcon x:Name="NextDateButtonPathIcon" Data="F1 M 11.28 5 C 11.12 4.866667 10.94 4.806667 10.74 4.82 C 10.539999 4.833334 10.366666 4.913334 10.219999 5.059999 C 10.073333 5.206665 10 5.379999 10 5.58 C 10 5.779999 10.08 5.946667 10.24 6.08 L 15.48 11.039999 L 2.76 11.039999 C 2.546667 11.039999 2.366667 11.113333 2.22 11.259999 C 2.073333 11.406667 2 11.586666 2 11.799999 C 2 12.013333 2.073333 12.193334 2.22 12.339999 C 2.366667 12.486667 2.546667 12.559999 2.76 12.559999 L 15.48 12.559999 L 10.24 17.52 C 10.026667 17.706665 9.953333 17.946667 10.02 18.24 C 10.086666 18.533333 10.259999 18.719999 10.54 18.799999 C 10.82 18.879999 11.066667 18.813334 11.28 18.599998 L 17.68 12.52 C 17.84 12.360001 17.946667 12.173333 18 11.959999 C 18 11.853333 18 11.746666 18 11.639999 C 17.946667 11.426666 17.84 11.24 17.68 11.08 Z " />
|
|
</Button>
|
|
|
|
<calendarControls:CustomCalendarFlipView
|
|
x:Name="DayHeaderNavigationItemsFlipView"
|
|
MaxHeight="30"
|
|
Margin="8,4,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
HorizontalContentAlignment="Left"
|
|
Background="Transparent"
|
|
FontSize="14"
|
|
FontWeight="Normal"
|
|
IsHitTestVisible="False"
|
|
ItemsSource="{x:Bind ViewModel.DateNavigationHeaderItems}"
|
|
SelectedIndex="{x:Bind ViewModel.SelectedDateNavigationHeaderIndex, Mode=OneWay}">
|
|
<FlipView.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
FontSize="18"
|
|
Style="{StaticResource BodyTextBlockStyle}"
|
|
Text="{Binding}" />
|
|
</DataTemplate>
|
|
</FlipView.ItemTemplate>
|
|
</calendarControls:CustomCalendarFlipView>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<calendarControls:WinoCalendarTypeSelectorControl
|
|
x:Name="CalendarTypeSelector"
|
|
Grid.Column="2"
|
|
HorizontalAlignment="Right"
|
|
DisplayDayCount="{x:Bind ViewModel.StatePersistenceService.DayDisplayCount, Mode=OneWay}"
|
|
SelectedType="{x:Bind ViewModel.StatePersistenceService.CalendarDisplayType, Mode=TwoWay}"
|
|
TodayClickedCommand="{x:Bind ViewModel.TodayClickedCommand}" />
|
|
</Grid>
|
|
</coreControls:WinoAppTitleBar.ShellFrameContent>
|
|
</coreControls:WinoAppTitleBar>
|
|
|
|
<Grid
|
|
Grid.RowSpan="2"
|
|
Grid.ColumnSpan="2"
|
|
Background="{ThemeResource WinoApplicationBackgroundColor}"
|
|
IsHitTestVisible="False">
|
|
<Grid.BackgroundTransition>
|
|
<BrushTransition />
|
|
</Grid.BackgroundTransition>
|
|
</Grid>
|
|
|
|
<SplitView
|
|
x:Name="MainSplitView"
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="3"
|
|
Background="Transparent"
|
|
DisplayMode="Inline"
|
|
IsPaneOpen="{x:Bind ViewModel.PreferencesService.IsNavigationPaneOpened, Mode=TwoWay}"
|
|
PaneBackground="Transparent">
|
|
<SplitView.Pane>
|
|
<Grid Padding="0,20,0,6">
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<calendarControls:WinoCalendarView
|
|
x:Name="CalendarView"
|
|
Grid.Row="0"
|
|
HorizontalAlignment="Center"
|
|
DateClickedCommand="{x:Bind ViewModel.DateClickedCommand}"
|
|
HighlightedDateRange="{x:Bind ViewModel.HighlightedDateRange, Mode=OneWay}"
|
|
TodayBackgroundColor="{ThemeResource SystemAccentColor}" />
|
|
|
|
|
|
<!-- Account Calendars Host -->
|
|
<ListView
|
|
x:Name="CalendarHostListView"
|
|
Grid.Row="1"
|
|
ItemsSource="{x:Bind ViewModel.AccountCalendarStateService.GroupedAccountCalendars}"
|
|
SelectionMode="None">
|
|
<ListView.Header>
|
|
<TextBlock
|
|
Margin="20,12,12,12"
|
|
FontSize="16"
|
|
Text="Calendars" />
|
|
</ListView.Header>
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate x:DataType="data:GroupedAccountCalendarViewModel">
|
|
<muxc:Expander
|
|
HorizontalAlignment="Stretch"
|
|
HorizontalContentAlignment="Stretch"
|
|
IsExpanded="{x:Bind IsExpanded, Mode=TwoWay}">
|
|
<muxc:Expander.Header>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<CheckBox
|
|
Width="26"
|
|
MinWidth="0"
|
|
IsChecked="{x:Bind IsCheckedState, Mode=TwoWay}"
|
|
IsThreeState="True" />
|
|
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
TextWrapping="Wrap">
|
|
<Run FontWeight="SemiBold" Text="{x:Bind Account.Name}" />
|
|
<Run FontSize="12" Text="(" /><Run FontSize="12" Text="{x:Bind Account.Address}" /><Run FontSize="12" Text=")" />
|
|
</TextBlock>
|
|
</Grid>
|
|
</muxc:Expander.Header>
|
|
<muxc:Expander.Content>
|
|
<ItemsControl ItemsSource="{x:Bind AccountCalendars}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate x:DataType="data:AccountCalendarViewModel">
|
|
<CheckBox
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
HorizontalContentAlignment="Stretch"
|
|
VerticalContentAlignment="Stretch"
|
|
IsChecked="{x:Bind IsChecked, Mode=TwoWay}">
|
|
<Grid Margin="0,0,0,5" ColumnSpacing="6">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Ellipse
|
|
Width="20"
|
|
Height="20"
|
|
Fill="{x:Bind helpers:XamlHelpers.GetSolidColorBrushFromHex(BackgroundColorHex), Mode=OneWay}" />
|
|
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Text="{x:Bind Name, Mode=OneWay}"
|
|
TextWrapping="Wrap" />
|
|
</Grid>
|
|
<!--<Border
|
|
Margin="0,0,0,4"
|
|
Padding="4,2,4,2"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
Background="{x:Bind helpers:XamlHelpers.GetSolidColorBrushFromHex(BackgroundColorHex), Mode=OneWay}"
|
|
CornerRadius="3">
|
|
|
|
</Border>-->
|
|
</CheckBox>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</muxc:Expander.Content>
|
|
</muxc:Expander>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
<ListView.Footer>
|
|
<Button
|
|
Margin="14,0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Bottom"
|
|
Command="{x:Bind ViewModel.SyncCommand}"
|
|
Content="Test Sync" />
|
|
</ListView.Footer>
|
|
</ListView>
|
|
|
|
<!-- Menu Items -->
|
|
<ListView
|
|
Grid.Row="2"
|
|
ItemTemplateSelector="{StaticResource NavigationMenuTemplateSelector}"
|
|
SelectedIndex="{x:Bind ViewModel.SelectedMenuItemIndex, Mode=TwoWay}">
|
|
<ListView.Items>
|
|
<ListViewItem>
|
|
<StackPanel Orientation="Horizontal" Spacing="12">
|
|
<PathIcon
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Data="F1 M 2.5 3.75 L 2.5 3.671875 C 2.5 3.164062 2.600911 2.687176 2.802734 2.241211 C 3.004557 1.795248 3.277995 1.40625 3.623047 1.074219 C 3.968099 0.742188 4.366862 0.480145 4.819336 0.288086 C 5.27181 0.096029 5.748698 0 6.25 0 C 6.770833 0 7.259114 0.097656 7.714844 0.292969 C 8.170572 0.488281 8.567708 0.755209 8.90625 1.09375 C 9.244791 1.432293 9.511719 1.829428 9.707031 2.285156 C 9.902344 2.740887 10 3.229168 10 3.75 C 10 4.270834 9.902344 4.759115 9.707031 5.214844 C 9.511719 5.670573 9.244791 6.067709 8.90625 6.40625 C 8.567708 6.744792 8.170572 7.011719 7.714844 7.207031 C 7.259114 7.402344 6.770833 7.5 6.25 7.5 C 5.729167 7.5 5.240885 7.402344 4.785156 7.207031 C 4.329427 7.011719 3.932292 6.744792 3.59375 6.40625 C 3.255208 6.067709 2.988281 5.670573 2.792969 5.214844 C 2.597656 4.759115 2.5 4.270834 2.5 3.75 Z M 8.75 3.75 L 8.75 3.701172 C 8.75 3.362631 8.681641 3.045248 8.544922 2.749023 C 8.408203 2.452801 8.225911 2.194012 7.998047 1.972656 C 7.770182 1.751303 7.504883 1.575521 7.202148 1.445312 C 6.899414 1.315105 6.582031 1.25 6.25 1.25 C 5.904948 1.25 5.581055 1.316732 5.27832 1.450195 C 4.975586 1.58366 4.711914 1.762695 4.487305 1.987305 C 4.262695 2.211914 4.083659 2.477215 3.950195 2.783203 C 3.816731 3.089193 3.75 3.411459 3.75 3.75 C 3.75 4.095053 3.816731 4.418946 3.950195 4.72168 C 4.083659 5.024415 4.262695 5.288087 4.487305 5.512695 C 4.711914 5.737306 4.975586 5.916342 5.27832 6.049805 C 5.581055 6.183269 5.904948 6.25 6.25 6.25 C 6.588542 6.25 6.910807 6.183269 7.216797 6.049805 C 7.522786 5.916342 7.788085 5.737306 8.012695 5.512695 C 8.237305 5.288087 8.416341 5.024415 8.549805 4.72168 C 8.683268 4.418946 8.75 4.095053 8.75 3.75 Z M 12.5 6.201172 C 12.5 5.862631 12.568359 5.545248 12.705078 5.249023 C 12.841797 4.9528 13.024088 4.694011 13.251953 4.472656 C 13.479816 4.251303 13.745116 4.075521 14.047852 3.945312 C 14.350585 3.815105 14.667968 3.75 15 3.75 C 15.338541 3.75 15.660807 3.816732 15.966797 3.950195 C 16.272785 4.08366 16.538086 4.262696 16.762695 4.487305 C 16.987305 4.711915 17.16634 4.977215 17.299805 5.283203 C 17.433268 5.589193 17.5 5.911459 17.5 6.25 C 17.5 6.582031 17.434895 6.899414 17.304688 7.202148 C 17.174479 7.504883 16.998697 7.770183 16.777344 7.998047 C 16.555988 8.225912 16.297199 8.408203 16.000977 8.544922 C 15.704752 8.681641 15.387369 8.75 15.048828 8.75 C 14.684244 8.75 14.34733 8.684896 14.038086 8.554688 C 13.728841 8.424479 13.460286 8.245443 13.232422 8.017578 C 13.004557 7.789714 12.82552 7.521159 12.695312 7.211914 C 12.565104 6.90267 12.5 6.565756 12.5 6.201172 Z M 16.25 6.25 C 16.25 6.08073 16.217447 5.919598 16.152344 5.766602 C 16.087238 5.613607 15.997721 5.480144 15.883789 5.366211 C 15.769856 5.252279 15.636393 5.162761 15.483398 5.097656 C 15.330403 5.032553 15.169271 5.000001 15 5 C 14.824218 5.000001 14.661457 5.032553 14.511719 5.097656 C 14.361979 5.162761 14.230143 5.252279 14.116211 5.366211 C 14.002277 5.480144 13.91276 5.611979 13.847656 5.761719 C 13.782552 5.911459 13.75 6.074219 13.75 6.25 C 13.75 6.425781 13.782552 6.59017 13.847656 6.743164 C 13.91276 6.896159 14.00065 7.027995 14.111328 7.138672 C 14.222005 7.24935 14.353841 7.33724 14.506836 7.402344 C 14.65983 7.467448 14.824218 7.5 15 7.5 C 15.17578 7.5 15.338541 7.467448 15.488281 7.402344 C 15.638021 7.33724 15.769856 7.247722 15.883789 7.133789 C 15.997721 7.019857 16.087238 6.888021 16.152344 6.738281 C 16.217447 6.588542 16.25 6.425781 16.25 6.25 Z M 10.048828 7.5 C 10.387369 7.5 10.704752 7.568359 11.000977 7.705078 C 11.2972 7.841797 11.555989 8.024089 11.777344 8.251953 C 11.998697 8.479818 12.174479 8.745117 12.304688 9.047852 C 12.434896 9.350586 12.5 9.667969 12.5 10 C 12.5 10.345053 12.434896 10.670573 12.304688 10.976562 C 12.174479 11.282553 11.99707 11.547852 11.772461 11.772461 C 11.547852 11.99707 11.282552 12.174479 10.976562 12.304688 C 10.670572 12.434896 10.345052 12.5 10 12.5 C 9.667969 12.5 9.350586 12.434896 9.047852 12.304688 C 8.745117 12.174479 8.479817 11.998698 8.251953 11.777344 C 8.024088 11.55599 7.841796 11.297201 7.705078 11.000977 C 7.568359 10.704753 7.5 10.38737 7.5 10.048828 C 7.5 9.684245 7.565104 9.347331 7.695312 9.038086 C 7.825521 8.728842 8.004557 8.460287 8.232422 8.232422 C 8.460286 8.004558 8.728841 7.825521 9.038086 7.695312 C 9.34733 7.565104 9.684244 7.5 10.048828 7.5 Z M 1.875 8.75 L 6.464844 8.75 C 6.321614 9.140625 6.25 9.557292 6.25 10 L 1.875 10 C 1.731771 10 1.617839 10.02767 1.533203 10.083008 C 1.448568 10.138347 1.385091 10.209961 1.342773 10.297852 C 1.300456 10.385742 1.272786 10.483398 1.259766 10.59082 C 1.246745 10.698242 1.240234 10.807292 1.240234 10.917969 C 1.240234 10.976562 1.241862 11.033529 1.245117 11.088867 C 1.248372 11.144206 1.25 11.197917 1.25 11.25 C 1.25 11.640625 1.32487 12.010092 1.474609 12.358398 C 1.624349 12.706706 1.822917 13.024089 2.070312 13.310547 C 2.317708 13.597006 2.602539 13.849284 2.924805 14.067383 C 3.24707 14.285482 3.580729 14.462891 3.925781 14.599609 C 3.854167 14.807943 3.806966 15.014648 3.78418 15.219727 C 3.761393 15.424805 3.75 15.638021 3.75 15.859375 C 3.261719 15.703125 2.791341 15.478516 2.338867 15.185547 C 1.886393 14.892578 1.48763 14.549154 1.142578 14.155273 C 0.797526 13.761394 0.520833 13.323568 0.3125 12.841797 C 0.104167 12.360026 0 11.848959 0 11.308594 L 0 10.625 C 0 10.371094 0.048828 10.130209 0.146484 9.902344 C 0.244141 9.674479 0.379232 9.474284 0.551758 9.301758 C 0.724284 9.129232 0.924479 8.994141 1.152344 8.896484 C 1.380208 8.798828 1.621094 8.75 1.875 8.75 Z M 10.107422 11.25 C 10.263672 11.25 10.411783 11.212565 10.551758 11.137695 C 10.691731 11.062826 10.813802 10.966797 10.917969 10.849609 C 11.022135 10.732422 11.103516 10.598959 11.162109 10.449219 C 11.220703 10.299479 11.25 10.14974 11.25 10 C 11.25 9.830729 11.217447 9.669597 11.152344 9.516602 C 11.087239 9.363607 10.997721 9.230144 10.883789 9.116211 C 10.769856 9.002279 10.636393 8.912761 10.483398 8.847656 C 10.330403 8.782553 10.169271 8.75 10 8.75 C 9.824219 8.75 9.661458 8.782553 9.511719 8.847656 C 9.361979 8.912761 9.230143 9.002279 9.116211 9.116211 C 9.002278 9.230144 8.91276 9.361979 8.847656 9.511719 C 8.782552 9.661459 8.75 9.824219 8.75 10 C 8.75 10.201823 8.785807 10.379232 8.857422 10.532227 C 8.929036 10.685222 9.025064 10.81543 9.145508 10.922852 C 9.26595 11.030273 9.40918 11.111654 9.575195 11.166992 C 9.741211 11.222331 9.918619 11.25 10.107422 11.25 Z M 16.25 15.625 C 16.25 15.371094 16.220703 15.120443 16.162109 14.873047 C 16.546223 14.794922 16.897785 14.669597 17.216797 14.49707 C 17.535807 14.324545 17.809244 14.111328 18.037109 13.857422 C 18.264973 13.603516 18.440754 13.310547 18.564453 12.978516 C 18.68815 12.646484 18.75 12.278646 18.75 11.875 C 18.75 11.705729 18.68815 11.559245 18.564453 11.435547 C 18.440754 11.31185 18.29427 11.25 18.125 11.25 L 13.535156 11.25 C 13.678385 10.859375 13.75 10.442709 13.75 10 L 18.125 10 C 18.378906 10 18.619791 10.048828 18.847656 10.146484 C 19.07552 10.244141 19.275715 10.379232 19.448242 10.551758 C 19.620768 10.724284 19.755859 10.924479 19.853516 11.152344 C 19.951172 11.380209 20 11.621094 20 11.875 C 20 12.460938 19.907227 12.991537 19.72168 13.466797 C 19.536133 13.942058 19.277344 14.360352 18.945312 14.72168 C 18.613281 15.083008 18.216145 15.382487 17.753906 15.620117 C 17.291666 15.857748 16.783854 16.0319 16.230469 16.142578 C 16.236979 16.051432 16.241861 15.96517 16.245117 15.883789 C 16.248371 15.802409 16.25 15.716146 16.25 15.625 Z M 5 15.625 C 5 15.364584 5.048828 15.120443 5.146484 14.892578 C 5.244141 14.664714 5.377604 14.466146 5.546875 14.296875 C 5.716146 14.127604 5.914713 13.994141 6.142578 13.896484 C 6.370442 13.798828 6.614583 13.75 6.875 13.75 L 13.125 13.75 C 13.385416 13.75 13.629557 13.798828 13.857422 13.896484 C 14.085286 13.994141 14.283854 14.127604 14.453125 14.296875 C 14.622395 14.466146 14.755858 14.664714 14.853516 14.892578 C 14.951171 15.120443 14.999999 15.364584 15 15.625 C 14.999999 16.341146 14.86328 16.971029 14.589844 17.514648 C 14.316405 18.058268 13.950194 18.513998 13.491211 18.881836 C 13.032226 19.249674 12.501627 19.527994 11.899414 19.716797 C 11.2972 19.9056 10.664062 20 10 20 C 9.335938 20 8.701172 19.907227 8.095703 19.72168 C 7.490234 19.536133 6.958008 19.259439 6.499023 18.891602 C 6.040039 18.523764 5.675456 18.066406 5.405273 17.519531 C 5.135091 16.972656 5 16.341146 5 15.625 Z M 13.75 15.625 C 13.75 15.455729 13.68815 15.309245 13.564453 15.185547 C 13.440755 15.06185 13.294271 15 13.125 15 L 6.875 15 C 6.705729 15 6.559244 15.06185 6.435547 15.185547 C 6.311849 15.309245 6.25 15.455729 6.25 15.625 C 6.25 16.165365 6.354167 16.632486 6.5625 17.026367 C 6.770833 17.420248 7.049153 17.744141 7.397461 17.998047 C 7.745768 18.251953 8.144531 18.440756 8.59375 18.564453 C 9.042969 18.68815 9.511719 18.75 10 18.75 C 10.488281 18.75 10.957031 18.68815 11.40625 18.564453 C 11.855469 18.440756 12.254231 18.251953 12.602539 17.998047 C 12.950846 17.744141 13.229166 17.420248 13.4375 17.026367 C 13.645833 16.632486 13.75 16.165365 13.75 15.625 Z " />
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="{x:Bind domain:Translator.MenuManageAccounts}" />
|
|
</StackPanel>
|
|
</ListViewItem>
|
|
<ListViewItem>
|
|
<StackPanel Orientation="Horizontal" Spacing="12">
|
|
<muxc:AnimatedIcon Width="20">
|
|
<muxc:AnimatedIcon.Source>
|
|
<animatedvisuals:AnimatedSettingsVisualSource />
|
|
</muxc:AnimatedIcon.Source>
|
|
<muxc:AnimatedIcon.FallbackIconSource>
|
|
<muxc:SymbolIconSource Symbol="Setting" />
|
|
</muxc:AnimatedIcon.FallbackIconSource>
|
|
</muxc:AnimatedIcon>
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="{x:Bind domain:Translator.MenuSettings}" />
|
|
</StackPanel>
|
|
</ListViewItem>
|
|
</ListView.Items>
|
|
</ListView>
|
|
</Grid>
|
|
</SplitView.Pane>
|
|
<SplitView.Content>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Main Content -->
|
|
<Frame
|
|
x:Name="ShellFrame"
|
|
Padding="0,0,7,7"
|
|
CacheSize="2"
|
|
IsNavigationStackEnabled="True">
|
|
<Frame.ContentTransitions>
|
|
<TransitionCollection>
|
|
<PopupThemeTransition />
|
|
</TransitionCollection>
|
|
</Frame.ContentTransitions>
|
|
</Frame>
|
|
|
|
<!-- InfoBar -->
|
|
<coreControls:WinoInfoBar
|
|
x:Name="ShellInfoBar"
|
|
MaxWidth="700"
|
|
Margin="0,60,25,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
IsClosable="False"
|
|
IsOpen="False" />
|
|
</Grid>
|
|
</SplitView.Content>
|
|
</SplitView>
|
|
|
|
<VisualStateManager.VisualStateGroups>
|
|
<VisualStateGroup x:Name="LowResolutionStates">
|
|
<VisualState x:Name="BigScreen">
|
|
<VisualState.StateTriggers>
|
|
<AdaptiveTrigger MinWindowWidth="1200" />
|
|
</VisualState.StateTriggers>
|
|
<VisualState.Setters>
|
|
<Setter Target="MainSplitView.IsPaneOpen" Value="True" />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
<VisualState x:Name="SmallScreen">
|
|
<VisualState.Setters>
|
|
<Setter Target="NavigationTitleStack.Visibility" Value="Collapsed" />
|
|
<Setter Target="SearchBox.(Grid.ColumnSpan)" Value="2" />
|
|
<Setter Target="MainSplitView.IsPaneOpen" Value="False" />
|
|
</VisualState.Setters>
|
|
<VisualState.StateTriggers>
|
|
<AdaptiveTrigger MinWindowWidth="0" />
|
|
</VisualState.StateTriggers>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="CalendarOrientationStates">
|
|
<VisualState x:Name="HorizontalCalendar" />
|
|
<VisualState x:Name="VerticalCalendar">
|
|
<VisualState.Setters>
|
|
<Setter Target="DayHeaderNavigationItemsFlipView.ItemsPanel">
|
|
<Setter.Value>
|
|
<ItemsPanelTemplate>
|
|
<VirtualizingStackPanel Orientation="Vertical" />
|
|
</ItemsPanelTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Target="PreviousDateButtonPathIcon.Data" Value="F1 M 3.2 10.52 C 2.986666 10.733333 2.92 10.98 3 11.259999 C 3.08 11.54 3.266666 11.713333 3.56 11.78 C 3.853333 11.846666 4.093333 11.773333 4.28 11.559999 L 9.24 6.32 L 9.24 19.039999 C 9.24 19.253332 9.313333 19.433332 9.46 19.58 C 9.606666 19.726665 9.786666 19.799999 10 19.799999 C 10.213333 19.799999 10.393332 19.726665 10.54 19.58 C 10.686666 19.433332 10.76 19.253332 10.76 19.039999 L 10.76 6.32 L 15.719999 11.559999 C 15.906666 11.773333 16.139999 11.846666 16.42 11.78 C 16.700001 11.713333 16.886665 11.54 16.98 11.259999 C 17.073332 10.98 17.013332 10.733333 16.799999 10.52 L 10.719999 4.119999 C 10.559999 3.959999 10.373333 3.853333 10.16 3.799999 C 10.053333 3.799999 9.946667 3.799999 9.84 3.799999 C 9.626666 3.853333 9.439999 3.959999 9.28 4.119999 Z " />
|
|
<Setter Target="NextDateButtonPathIcon.Data" Value="F1 M 16.799999 13.079999 C 16.933332 12.92 16.993332 12.74 16.98 12.539999 C 16.966665 12.34 16.886665 12.166667 16.74 12.02 C 16.593334 11.873333 16.42 11.799999 16.219999 11.799999 C 16.02 11.799999 15.853333 11.879999 15.719999 12.039999 L 10.76 17.279999 L 10.76 4.559999 C 10.76 4.346666 10.686666 4.166668 10.54 4.02 C 10.393332 3.873333 10.213333 3.799999 10 3.799999 C 9.786666 3.799999 9.606666 3.873333 9.46 4.02 C 9.313333 4.166668 9.24 4.346666 9.24 4.559999 L 9.24 17.279999 L 4.28 12.039999 C 4.146667 11.879999 3.98 11.799999 3.78 11.799999 C 3.58 11.799999 3.4 11.873333 3.24 12.02 C 3.08 12.166667 3 12.34 3 12.539999 C 3 12.74 3.066667 12.92 3.2 13.079999 L 9.28 19.48 C 9.439999 19.639999 9.626666 19.746666 9.84 19.799999 C 9.946667 19.799999 10.053333 19.799999 10.16 19.799999 C 10.373333 19.746666 10.559999 19.639999 10.719999 19.48 Z " />
|
|
</VisualState.Setters>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
|
|
<VisualStateGroup x:Name="ShellStateContentGroup">
|
|
<VisualState x:Name="DefaultShellContentState" />
|
|
<VisualState x:Name="EventDetailsContentState">
|
|
<VisualState.Setters>
|
|
<Setter Target="ShellContentArea.Visibility" Value="Collapsed" />
|
|
<Setter Target="CalendarTypeSelector.Visibility" Value="Collapsed" />
|
|
<Setter Target="CalendarView.IsEnabled" Value="False" />
|
|
<Setter Target="CalendarHostListView.IsEnabled" Value="False" />
|
|
</VisualState.Setters>
|
|
<VisualState.StateTriggers>
|
|
<StateTrigger IsActive="{x:Bind ViewModel.IsEventDetailsPageActive, Mode=OneWay}" />
|
|
</VisualState.StateTriggers>
|
|
</VisualState>
|
|
</VisualStateGroup>
|
|
</VisualStateManager.VisualStateGroups>
|
|
</Grid>
|
|
</abstract:AppShellAbstract>
|
|
|
|
|