|
@@ -3,91 +3,95 @@
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:avalonia="clr-namespace:PRS.Avalonia"
|
|
|
+ xmlns:dialogHostAvalonia="clr-namespace:DialogHostAvalonia;assembly=DialogHost.Avalonia"
|
|
|
xmlns:components="clr-namespace:InABox.Avalonia.Components;assembly=InABox.Avalonia"
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
x:Class="PRS.Avalonia.Modules.MainView"
|
|
|
x:DataType="avalonia:MainViewModel">
|
|
|
|
|
|
- <Grid Background="{StaticResource PrsSurfaceBackground}">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="45" />
|
|
|
- <RowDefinition Height="*" />
|
|
|
- </Grid.RowDefinitions>
|
|
|
+ <dialogHostAvalonia:DialogHost CloseOnClickAway="True">
|
|
|
+ <Grid Background="{StaticResource PrsSurfaceBackground}">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="45" />
|
|
|
+ <RowDefinition Height="*" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
|
- <Grid
|
|
|
- Grid.Row="0"
|
|
|
- Grid.Column="0"
|
|
|
- Background="{StaticResource PrsMenuBackground}">
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="*" />
|
|
|
- </Grid.RowDefinitions>
|
|
|
+ <Grid
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="0"
|
|
|
+ Background="{StaticResource PrsMenuBackground}">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="*" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="Auto" />
|
|
|
- <ColumnDefinition Width="Auto" />
|
|
|
- <ColumnDefinition Width="*" />
|
|
|
- <ColumnDefinition Width="Auto" />
|
|
|
- <ColumnDefinition Width="Auto" />
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
|
|
|
- <Button
|
|
|
- Grid.Row="0"
|
|
|
- Grid.Column="0"
|
|
|
- Margin="5,0,0,0"
|
|
|
- Classes="Transparent"
|
|
|
- HorizontalAlignment="Center"
|
|
|
- VerticalAlignment="Center"
|
|
|
- IsVisible="{Binding BackButtonVisible}"
|
|
|
- Command="{Binding BackButtonPressedCommand}">
|
|
|
- <Image>
|
|
|
- <Image.Source>
|
|
|
- <SvgImage Source="../Images/arrow_white_left.svg" />
|
|
|
- </Image.Source>
|
|
|
- </Image>
|
|
|
- </Button>
|
|
|
+ <Button
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="0"
|
|
|
+ Margin="5,0,0,0"
|
|
|
+ Classes="Transparent"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ IsVisible="{Binding BackButtonVisible}"
|
|
|
+ Command="{Binding BackButtonPressedCommand}">
|
|
|
+ <Image>
|
|
|
+ <Image.Source>
|
|
|
+ <SvgImage Source="../Images/arrow_white_left.svg" />
|
|
|
+ </Image.Source>
|
|
|
+ </Image>
|
|
|
+ </Button>
|
|
|
|
|
|
- <components:AvaloniaMenuPanel
|
|
|
- Grid.Row="0"
|
|
|
- Grid.Column="1"
|
|
|
- Items="{Binding SecondaryMenu}" />
|
|
|
+ <components:AvaloniaMenuPanel
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="1"
|
|
|
+ Items="{Binding SecondaryMenu}" />
|
|
|
|
|
|
- <Label
|
|
|
- Grid.Row="0"
|
|
|
- Grid.Column="2"
|
|
|
- Content="{Binding Title}"
|
|
|
- VerticalContentAlignment="Center"
|
|
|
- Margin="5,0,0,0"
|
|
|
- FontSize="{StaticResource PrsFontSizeLarge}"
|
|
|
- FontWeight="{StaticResource PrsFontWeightBold}"
|
|
|
- Foreground="{StaticResource PrsMainMenuForeground}" />
|
|
|
+ <Label
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="2"
|
|
|
+ Content="{Binding Title}"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ Margin="5,0,0,0"
|
|
|
+ FontSize="{StaticResource PrsFontSizeLarge}"
|
|
|
+ FontWeight="{StaticResource PrsFontWeightBold}"
|
|
|
+ Foreground="{StaticResource PrsMainMenuForeground}" />
|
|
|
|
|
|
- <ItemsControl
|
|
|
- x:Name="NotificationsPanel"
|
|
|
- Grid.Row="0"
|
|
|
- Grid.Column="3"
|
|
|
- Classes="MenuPanel" />
|
|
|
+ <ItemsControl
|
|
|
+ x:Name="NotificationsPanel"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="3"
|
|
|
+ Classes="MenuPanel" />
|
|
|
|
|
|
- <components:AvaloniaMenuPanel
|
|
|
- Grid.Row="0"
|
|
|
- Grid.Column="4"
|
|
|
- Margin="0,0,5,0"
|
|
|
- Items="{Binding PrimaryMenu}" />
|
|
|
+ <components:AvaloniaMenuPanel
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="4"
|
|
|
+ Margin="0,0,5,0"
|
|
|
+ Items="{Binding PrimaryMenu}" />
|
|
|
|
|
|
- </Grid>
|
|
|
+ </Grid>
|
|
|
|
|
|
- <TransitioningContentControl
|
|
|
- Grid.Row="1"
|
|
|
- Grid.Column="0"
|
|
|
- Margin="{StaticResource PrsControlSpacing}"
|
|
|
- Content="{Binding Content}"
|
|
|
- IsTransitionReversed="{Binding ReverseTransition}"
|
|
|
- TransitionCompleted="TransitioningContentControl_OnTransitionCompleted">
|
|
|
- <TransitioningContentControl.PageTransition>
|
|
|
- <!-- <CrossFade Duration="0:00:00.50"/> -->
|
|
|
- <PageSlide Orientation="Horizontal" Duration="0:00:00.500" />
|
|
|
- </TransitioningContentControl.PageTransition>
|
|
|
- </TransitioningContentControl>
|
|
|
+ <TransitioningContentControl
|
|
|
+ Grid.Row="1"
|
|
|
+ Grid.Column="0"
|
|
|
+ Margin="{StaticResource PrsControlSpacing}"
|
|
|
+ Content="{Binding Content}"
|
|
|
+ IsTransitionReversed="{Binding ReverseTransition}"
|
|
|
+ TransitionCompleted="TransitioningContentControl_OnTransitionCompleted">
|
|
|
+ <TransitioningContentControl.PageTransition>
|
|
|
+ <!-- <CrossFade Duration="0:00:00.50"/> -->
|
|
|
+ <PageSlide Orientation="Horizontal" Duration="0:00:00.500" />
|
|
|
+ </TransitioningContentControl.PageTransition>
|
|
|
+ </TransitioningContentControl>
|
|
|
+
|
|
|
+ </Grid>
|
|
|
+ </dialogHostAvalonia:DialogHost>
|
|
|
|
|
|
- </Grid>
|
|
|
|
|
|
</UserControl>
|