RecentDocumentMenu in BackstageTab and Backstage

WPF Studio, Themes, and Shared Library for WPF Forum

Posted 13 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 13 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 13 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 13 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 (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.