46 lines
1.4 KiB
XML
46 lines
1.4 KiB
XML
<f:WindowBase
|
|
x:Class="Store.Management.MainWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:f="Store.Management.Framework"
|
|
xmlns:local="clr-namespace:Store.Management.Views"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
Title="{Binding Title}"
|
|
Width="1140"
|
|
Height="720"
|
|
MinWidth="900"
|
|
MinHeight="560"
|
|
WindowStartupLocation="CenterScreen">
|
|
<Border>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition Height="20" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="180" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<Border
|
|
Grid.Column="0"
|
|
BorderBrush="{StaticResource SecondaryBorderBrush}"
|
|
BorderThickness="0,0,1,0">
|
|
<local:LeftNavView />
|
|
</Border>
|
|
<!-- 右侧页面标题与内容 -->
|
|
<DockPanel Grid.Column="1">
|
|
<TextBlock
|
|
Margin="16,16,16,0"
|
|
DockPanel.Dock="Top"
|
|
Text="{Binding SelectedItem.Header, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" />
|
|
<ContentControl x:Name="PART_SelectedContentHost" prism:RegionManager.RegionName="{Binding Source={x:Static f:Navigation.MainContext}}" />
|
|
</DockPanel>
|
|
<Border
|
|
Grid.Row="1"
|
|
Grid.ColumnSpan="2"
|
|
BorderBrush="{StaticResource SecondaryBorderBrush}"
|
|
BorderThickness="0,1,0,0" />
|
|
</Grid>
|
|
</Border>
|
|
</f:WindowBase>
|