C# 如何从模块中删除区域并添加新的ContentControls

C# 如何从模块中删除区域并添加新的ContentControls,c#,silverlight,silverlight-4.0,region,prism-2,C#,Silverlight,Silverlight 4.0,Region,Prism 2,我在Shell“LoginRegion”中只设置了一个区域 请帮忙,谢谢。请看罗恩·格拉曼的文章: Prism v2的布局管理器 它对我有用 <!-- Login Region --> <Border Grid.Row="0"> <ContentControl x:Name="LoginRegion" Regions:RegionManager.RegionName="LoginRegion" Vertica

我在Shell“LoginRegion”中只设置了一个区域


请帮忙,谢谢。

请看罗恩·格拉曼的文章:

Prism v2的布局管理器

它对我有用

<!-- Login Region -->
<Border Grid.Row="0">
    <ContentControl x:Name="LoginRegion" Regions:RegionManager.RegionName="LoginRegion"
                        VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
</Border>
<Grid.RowDefinitions>
    <RowDefinition Height="93"/>
    <RowDefinition />
    <RowDefinition Height="24"/>
</Grid.RowDefinitions>

<!-- Top Region -->
<Border Grid.Row="0">
    <ContentControl x:Name="TopRegion" Regions:RegionManager.RegionName="TopRegion"
                    VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
</Border>

<!-- Main Region -->
<Border Grid.Row="1">
    <ContentControl x:Name="MainRegion" Regions:RegionManager.RegionName="MainRegion"
                    Style="{StaticResource TestStyle}"
                    VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
</Border>

<!-- Bottom Region -->
<Border Grid.Row="2">
    <ContentControl x:Name="BottomRegion" Regions:RegionManager.RegionName="BottomRegion"
                    VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"/>
</Border>