Backstage - RecentDocumentsMenu - MouseOver Item

Ribbon for WPF Forum

Posted 14 years ago by John Howe
Version: 10.2.0532
Avatar
Hi Guys,

We would like to show a preview of a document in the RecentFilesMenu in the BackstageView. To do this we need to be able to hook to a MouseOver/MouseEnter event as the mouse passes over an Item in the RecentDocumentsMenu.

How does one do this?

Regards

John

Comments (1)

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

You can access the DocumentReferences in the menu through the RecentDocumentMenu.Manager.Document collection.

You would need to attach to the MouseEnter event for each of these items, and then make sure to detach when no longer needed.

One way to implement this would be to inherit from the RecentDocumentMenu control, and in the PrepareContainerForItemOverride and ClearContainerForItemOverride, you could attach and detach the MouseEnter events on the containers, then raise an event of your own.

Please let us know if you have further questions.


Actipro Software Support

The latest build of this product (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.