1
0Hi棱镜和区域
我有一个shell我在其中设置了一个区域“MainContentRegion”。在这个区域我加载这样的观点:
<UserControl x:Class="CustomControls.MainContent"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cal="http://www.codeplex.com/CompositeWPF">
<Border BorderThickness="1" BorderBrush="Black" Margin="2">
<Grid x:Name="ContentGrid" Background="{StaticResource MainContentBackgroundColor}">
<Grid.RowDefinitions>
<RowDefinition Height="55" />
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<ContentControl Name="MainContentHeaderRegion" cal:RegionManager.RegionName="MainContentHeaderRegion" Grid.Row="1"/>
<ContentControl Name="MainContentBodyRegion" cal:RegionManager.RegionName="MainContentBodyRegion" Grid.Row="2"/>
</Grid>
</Border>
</UserControl>
当试图访问2米新增加的区域,我得到一个错误,仰视负荷的区域后,我只看到从外壳添加的区域。有人可以帮忙吗?