| 1 | <ui:DefaultWindow x:Class="UI.MainWindow" |
| 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | xmlns:local="clr-namespace:UI" |
| 7 | mc:Ignorable="d" |
| 8 | xmlns:ui="clr-namespace:UI.Controls.Window" |
| 9 | Title="Tai" Height="585" Width="815" MinHeight="585" MinWidth="814" |
| 10 | xmlns:control="clr-namespace:UI.Controls" |
| 11 | xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" |
| 12 | xmlns:Navigation="clr-namespace:UI.Controls.Navigation" |
| 13 | x:Name="Window" |
| 14 | PageContainer="{Binding PageContainer}" |
| 15 | Icon="/Resources/Icons/tai32.ico" |
| 16 | IsShowToast="{Binding IsShowToast,Mode=TwoWay}" |
| 17 | ToastContent="{Binding ToastContent,Mode=TwoWay}" |
| 18 | ToastIcon="{Binding ToastIcon}" |
| 19 | ToastType="{Binding ToastType}" |
| 20 | |
| 21 | > |
| 22 | |
| 23 | <Grid > |
| 24 | |
| 25 | <Grid.ColumnDefinitions> |
| 26 | <ColumnDefinition Width="auto"/> |
| 27 | <ColumnDefinition Width="*"/> |
| 28 | </Grid.ColumnDefinitions> |
| 29 | <Navigation:Navigation x:Name="Navigation" Margin="0,32,0,0" Data="{Binding Items,Mode=TwoWay}" Width="80" WindowWidth="{Binding ElementName=Window,Path=ActualWidth}" IsShowNavigation="{Binding IsShowNavigation,Mode=TwoWay}" SelectedItem="{Binding NavSelectedItem,Mode=TwoWay}"> |
| 30 | <i:Interaction.Triggers> |
| 31 | <i:EventTrigger EventName="OnSelected"> |
| 32 | <i:InvokeCommandAction Command="{Binding OnSelectedCommand}" CommandParameter="{Binding ElementName=Navigation}"/> |
| 33 | </i:EventTrigger> |
| 34 | <i:EventTrigger EventName="OnMouseRightButtonUP"> |
| 35 | |
| 36 | </i:EventTrigger> |
| 37 | </i:Interaction.Triggers> |
| 38 | |
| 39 | |
| 40 | |
| 41 | <Navigation:Navigation.BottomExtContent> |
| 42 | <Navigation:NavigationItem Icon="Settings" Title="设置" Uri="SettingsPage" Command="{Binding GotoPageCommand}" CommandParameter="SettingPage"/> |
| 43 | </Navigation:Navigation.BottomExtContent> |
| 44 | |
| 45 | </Navigation:Navigation> |
| 46 | <Border Grid.Column="1" Background="{DynamicResource WindowContentBackground}" Margin="0,40,10,10" CornerRadius="5" BorderThickness="1,1,1,1" BorderBrush="{DynamicResource WindowContentBorder}" ClipToBounds="True"> |
| 47 | <control:PageContainer IndexUriList="{Binding IndexUriList}" Instance="{Binding PageContainer,Mode=TwoWay}" ServiceProvider="{Binding ServiceProvider}" Uri="{Binding Uri,Mode=TwoWay}" Title="{Binding Title}" IsShowTilteBar="{Binding IsShowTitleBar,Mode=TwoWay}"/> |
| 48 | </Border> |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | </Grid> |
| 55 | </ui:DefaultWindow> |