Recent Documents and Uri

Ribbon for WPF Forum

Posted 14 years ago by FinallyInSeattle
Version: 10.1.0521
Avatar
We're considering adding the "recent documents" feature to our application. Our "documents" aren't documents in the traditional sense - they're not files, they're entities in a database that have a unique key value. I notice that in your product, a Uri is provided as kind of identifier. Since our "id" isn't a Uri, will we have issues if we don't fill in the Location field of the IDocumentReference? We're looking to store our id in the Tag field instead.

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello,

If you don't set the Location, then you won't be able to use RecentDocumentManager.NotifyDocumentOpened. These methods are just helper methods for auto-creating a document reference (if it doesn't exist yet) or setting the LastOpenedDateTime (if it does exist). You also won't be able to use RecentDocumentManager.GetDocumentReference, which just gets a document that has the specified location.

Other than those methods, our code doesn't reference the Location property so you should be able to safely ignore it.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.