RecentDocumentMenu in BackstageTab and Backstage

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 8 years ago by Stephan Kaluza
Avatar
I use 2 RecentDocumentMenus

in the Backstage:
<ribbon:RecentDocumentMenu Manager="{x:Reference RecentDocumentManager}" />


and in the BackstageTab:

<ribbon:RecentDocumentMenu x:Uid="ribbon:RecentDocumentMenu_1" VariantSize="Large">
<shared:RecentDocumentManager x:Uid="recentDocManager" x:Name="RecentDocumentManager" MaxFilteredDocumentCount="20" />
</ribbon:RecentDocumentMenu>


How can use the two RecentDocumentMenu´s the same RecentDocumentManager with different MaxFilteredDocumentCount?


Regards,

Stephan

Comments (3)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Stephan,

Sorry but for now if they are sharing the same manager then they would have the same filtered count since that data layer is what is limiting the input, and in your case is shared among the two control instances.

What you'd have to do is create a second manager with a smaller filtered count and maintain both managers when files are opened/saved in your app. Then use the second smaller manager on the RecentDocumentMenu in your Backstage tab area.


Actipro Software Support

Posted 8 years ago by Stephan Kaluza
Avatar
Hi,

is this feature planned? Otherwise I have also update the second RecentDocumentManager when a document is pinned - then the item moves up - like MS Office

Regards,
Stephan
Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Stephan,

RecentDocumentManager was designed back in Office 2007 when there was only one instance of such a menu in an app. We can make a TODO item to look into what can be done to support multiple filtered lists however we don't really want to make any breaking changes to the RecentDocumentManager at this point.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.