C00225155-02/C00225155/MegaRobo.C00225155/MegaRobo.C00225155App/MenuViews/HardwareDevicesDebugView.xaml

32 lines
1.4 KiB
XML

<UserControl x:Class="MegaRobo.C00225155App.MenuViews.HardwareDevicesDebugView"
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:MegaRobo.C00225155App.MenuViews"
mc:Ignorable="d"
DataContext="{Binding hardwareDevicesDebugViewModel,Source={StaticResource vmLocator}}"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Menu Grid.Row="0" Style="{StaticResource MenuStyle1}"
ItemsSource="{Binding MenuItemLists}">
<Menu.ItemContainerStyle>
<Style TargetType="MenuItem" BasedOn="{StaticResource MenuItemStyle1}">
<Setter Property="Command" Value="{Binding Command}"/>
</Style>
</Menu.ItemContainerStyle>
</Menu>
<!-- 视图容器 -->
<ContentControl x:Name="ViewContainer" Grid.Row="1"
VerticalAlignment="Top"
HorizontalAlignment="Left"
Content="{Binding SelectedMenuItem}"/>
</Grid>
</UserControl>