我有一个带有选项卡控件的用户控件。在每个选项卡中,我声明了一些区域。
<TabControl Style="{DynamicResource HomeScreenTabControlStyle}">
<TabItem Header="home"
Style="{DynamicResource HomeScreenTabItemStyle}">
<StackPanel Orientation="Horizontal">
<StackPanel Name="BacklogPanel" Style="{DynamicResource FullLengthPanelStyle}"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.FullLeftBoxRegion}">
</StackPanel>
<StackPanel Orientation="Vertical">
<StackPanel Name="ToDoPanel" Style="{DynamicResource HalfLengthPanelStyle}"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.HalfTopBoxRegion}">
</StackPanel>
<StackPanel Name="MeetingPanel" Style="{DynamicResource HalfLengthPanelStyle}"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.HalfBottomBoxRegion}">
</StackPanel>
</StackPanel>
<StackPanel Name="SprintPanel" Style="{DynamicResource FullLengthPanelStyle}"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.FullSecondLeftBoxRegion}">
</StackPanel>
<StackPanel Name="StoriesPanel" Style="{DynamicResource FullLengthPanelStyle}"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.FullRightBoxRegion}">
</StackPanel>
</StackPanel>
</TabItem>
<TabItem Header="sprints"
Style="{DynamicResource HomeScreenTabItemStyle}">
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
<StackPanel Style="{DynamicResource FullLengthPanelStyle}"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.SprintBacklog}">
</StackPanel>
<StackPanel Orientation="Vertical">
<StackPanel Style="{DynamicResource HalfLengthPanelStyle}"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.PeopleOnSprint}">
</StackPanel>
<StackPanel Style="{DynamicResource HalfLengthPanelStyle}"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.SprintDetails}">
</StackPanel>
</StackPanel>
<StackPanel Style="{DynamicResource FullLengthPanelStyle}"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.SprintTaskBacklog}">
</StackPanel>
<StackPanel Style="{DynamicResource FullLengthPanelStyle}"
prism:RegionManager.RegionName="{x:Static inf:RegionNames.SprintMyTasks}">
</StackPanel>
</StackPanel>
</StackPanel>
</TabItem>
目前要导航到这个 HomeScreenView 我正在做这样的事情......
_regionManager.RequestNavigate(RegionNames.ContentRegion, new Uri("/HomeScreenView", UriKind.Relative));
有什么我可以传递给区域经理的,以便它将 Sprints 选项卡设置为导航到的选项卡,而不是主页选项卡?
谢谢