45 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			45 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<UserControl x:Class="DM_Weight.Views.SettingMainWindow"
							 | 
						||
| 
								 | 
							
								             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
							 | 
						||
| 
								 | 
							
								             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
							 | 
						||
| 
								 | 
							
								             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
							 | 
						||
| 
								 | 
							
								             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
							 | 
						||
| 
								 | 
							
								             xmlns:local="clr-namespace:DM_Weight.Views"
							 | 
						||
| 
								 | 
							
								             xmlns:prism="http://prismlibrary.com/"
							 | 
						||
| 
								 | 
							
								             xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
							 | 
						||
| 
								 | 
							
								             xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
							 | 
						||
| 
								 | 
							
								             xmlns:ext="clr-namespace:DM_Weight.Common"
							 | 
						||
| 
								 | 
							
								             mc:Ignorable="d" 
							 | 
						||
| 
								 | 
							
								             d:DesignHeight="450" d:DesignWidth="800">
							 | 
						||
| 
								 | 
							
								    <Grid>
							 | 
						||
| 
								 | 
							
								        <Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								            <RowDefinition Height="auto"/>
							 | 
						||
| 
								 | 
							
								            <RowDefinition/>
							 | 
						||
| 
								 | 
							
								        </Grid.RowDefinitions>
							 | 
						||
| 
								 | 
							
								        <TextBlock Margin="20,10" FontSize="26" Text="设置"/>
							 | 
						||
| 
								 | 
							
								        <Border BorderBrush="#DDD" BorderThickness="1,0,0,0.3"/>
							 | 
						||
| 
								 | 
							
								        <Grid Grid.Row="1" Margin="10">
							 | 
						||
| 
								 | 
							
								            <Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								                <ColumnDefinition Width="130"/>
							 | 
						||
| 
								 | 
							
								                <ColumnDefinition/>
							 | 
						||
| 
								 | 
							
								            </Grid.ColumnDefinitions>
							 | 
						||
| 
								 | 
							
								            <ListBox Grid.Row="0" Grid.Column="0" x:Name="menuBar" ItemsSource="{Binding SettingPages}">
							 | 
						||
| 
								 | 
							
								                <i:Interaction.Triggers>
							 | 
						||
| 
								 | 
							
								                    <i:EventTrigger EventName="SelectionChanged">
							 | 
						||
| 
								 | 
							
								                        <i:InvokeCommandAction Command="{Binding NavigateCommand}" CommandParameter="{Binding ElementName=menuBar,Path=SelectedItem.ViewName}"/>
							 | 
						||
| 
								 | 
							
								                    </i:EventTrigger>
							 | 
						||
| 
								 | 
							
								                </i:Interaction.Triggers>
							 | 
						||
| 
								 | 
							
								                <ListBox.ItemTemplate>
							 | 
						||
| 
								 | 
							
								                    <DataTemplate>
							 | 
						||
| 
								 | 
							
								                        <StackPanel Background="Transparent" Orientation="Horizontal">
							 | 
						||
| 
								 | 
							
								                            <md:PackIcon Margin="10,0" Kind="{Binding Icon}"/>
							 | 
						||
| 
								 | 
							
								                            <TextBlock Margin="5,0" Text="{Binding Name}"/>
							 | 
						||
| 
								 | 
							
								                        </StackPanel>
							 | 
						||
| 
								 | 
							
								                    </DataTemplate>
							 | 
						||
| 
								 | 
							
								                </ListBox.ItemTemplate>
							 | 
						||
| 
								 | 
							
								            </ListBox>
							 | 
						||
| 
								 | 
							
								            <Border BorderBrush="#DDD" BorderThickness="0,0,1,0"/>
							 | 
						||
| 
								 | 
							
								            <ContentControl Grid.Row="0" Grid.Column="1" Margin="20,0" prism:RegionManager.RegionName="{x:Static ext:PrismManager.SettingViewRegionName}"/>
							 | 
						||
| 
								 | 
							
								        </Grid>
							 | 
						||
| 
								 | 
							
								    </Grid>
							 | 
						||
| 
								 | 
							
								</UserControl>
							 |