MainWindow がアクセスするリソース ファイルにあるデータ テンプレートをバインドする方法を探していますが、ビューモデルで実行されているタスクが完了した後でのみです。
アイデアは、ビューが小さな進行状況領域で表示されている間に大量のデータをロードすることでした...進行状況が完了したら...データをバインドする必要があります...これを可能にする依存関係プロパティはありますか?
<DataTemplate x:Key="TabsTemplate">
<ItemsControl ItemsSource="{Binding}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<UserControls:TabButton Command="{Binding Path=Tab}" Content="{Binding Path=DisplayName}" Template="{Utilities:BindableResource {Binding Path=TemplateResource}}" />
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</DataTemplate>