MiniToolBarService

Ribbon for WPF Forum

Posted 10 years ago by Andy Fouse
Version: 9.1.0505
Avatar
Currently part of our application is still in WinForms and we would like to use the MiniToolBarService . Is there any way I can use the MiniToolBarService with Winforms? The Show method takes UIElement as the placementTarget. Can it take a rect/point instead? Are there any plans to support interop with WinForms?

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Andy,

You can however there are a couple issues. First is that the placement target is a UIElement as you said. You'd probably have to target the WindowsFormsHost there instead.

Second, Microsoft's interop blocks mouse input from bubbing up to WPF when the mouse is over a WinForms control. So we can't determine when to fade in/out the mini-toolbar. I have seen a customer implementation though where the customer used a timer that showed while the mini-toolbar was open and called a special method we made available to them on the timer's tick event:
ActiproSoftware.Windows.Controls.Ribbon.UI.MiniToolBarService.NotifyMouseMove(MousePosition)

That method takes a screen mouse location. This way the mini-toolbar still fades in/out based on the NotifyMouseMove notifications you send.


Actipro Software Support

The latest build of this product (v2019.1 build 0684) was released 12 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.