タスクバーの JumpList に最近のエントリを自動的に (追加のコードではなく) 作成する .net 4.5 WPF アプリケーションがあります。これらの JumpList アイテムを RibbonApplicationMenu にバインドしたいと思います。次のように現在の JumpList を取得しようとしました。
this.JumpList = JumpList.GetJumpList(App.Current);
リストをRibbonApplicationMenuにバインドできません。
<RibbonApplicationMenu.AuxiliaryPaneContent>
<RibbonGallery CanUserFilter="False" ScrollViewer.VerticalScrollBarVisibility="Auto" >
<RibbonGalleryCategory Header="Recent Documents" Background="Transparent" >
<JumpList JumpList="{Binding JumpList}"/>
</RibbonGalleryCategory>
</RibbonGallery>
</RibbonApplicationMenu.AuxiliaryPaneContent>
独自のリストを作成せずに、最近のリストを RibbonApplicationMenu に取得するにはどうすればよいですか。
編集
MainWpf コンストラクターでこれを行っています。
JumpList pJumpList = JumpList.GetJumpList(Application.Current);
pJumpList.ShowFrequentCategory = false;
pJumpList.ShowRecentCategory = true;
foreach (var item in this.pJumpList.JumpItems)
{
JumpPath path = item as JumpPath;
this.JumpListCollection.Add(path.Path);
}
RibbonMenu のジャンプリストから現在の最近のアイテムに移動したい
この最近の項目は、アプリケーションのコードからではなく、Windows によって作成されています