NavigationWindowに基づく「レガシー」WPFアプリケーションがあります。NavigationWindowには、ContentPresenterを次のように格納するかなり大きなControlTemplateがあります。
<ControlTemplate>
....snip...
<ContentPresenter x:Name="PART_NavWinCP" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
.....snip....
</ControlTemplate>
そのContentPresenterを最初のタブとして使用し、実行時に他のタブを動的に追加します。このような:
<ControlTemplate>
....snip...
<TabControl Background="Transparent" cal:RegionManager.RegionName="MainRegion" Grid.ColumnSpan="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<TabItem Header="Nav Window Content">
<ContentPresenter x:Name="PART_NavWinCP" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"/>
</TabItem>
</TabControl>
.....snip....
</ControlTemplate>
次に、モジュールはRegionNameを取得し、そのコンテンツを動的に挿入します。問題は、PRISMリージョンマネージャーが、コードがContentTemplateにあることを気に入らず、リージョンを解決できないことであると思われます。RegionManagerを更新し、Regionを動的に追加して、ContentPresenterなしでルートタブコントロールを使用しようとしましたが、これを機能させることができません。何か案は?