This is a migrated thread and some comments may be shown as answers.

WindowsFormHost control hosted in WPF unpinned RadPane is not visible when mouse is hovered over

5 Answers 293 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Tayyaba
Top achievements
Rank 1
Tayyaba asked on 17 Apr 2018, 09:30 AM

Hi,

 

I have a winforms control hosted in WPF RadPane. When radpane is in unpinned state, and when mouse is hovered on it, RadPane slides and becomes visible.
But when it is visibile it is empty, it doesn't show the control inside itself.

I have attached image its image too.

Kindly let me know what should I do to make the control visible too when pan becomes visible in unpinned state.

5 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 20 Apr 2018, 09:02 AM
Hello Tayyaba,

Please check the WinformsInsideDocking demo in our online XAML SDK repository, that demonstrates what needs to be done in order to be able to display Winforms controls inside RadDocking. Basically the ToolWindows and the auto hide Popups should have AllowTransparency set to False.

Hope this helps.

Regards,
Kalin
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Tayyaba
Top achievements
Rank 1
answered on 16 May 2018, 10:57 AM

Hi Kalin,

 

Thanks for helping me out, it worked, but I still have one issue. When the RadPane is in unpinned state and it is hosting a winforms control, none of its control works. I've tested it in the same sample WinformsInsideDocking demo project, user cannot click a button or check a checkbox when the pane is not pinned. as soon as user clicks the pane goes back into autohide state.

Please let me know how can I make it work.

 

Thanks,

Tayyaba

0
Kalin
Telerik team
answered on 21 May 2018, 10:25 AM
Hi Tayyaba,

This is happening because the WindowsFormsHost steals the focus and it goes outside of the WPF application. On other hand the Pane in the autohide area depends on the focus and when is being lost the Pane closes. What I can suggest you would be to implement a custom FlyoutBehavior (for an example check this demo) which keeps the Winforms Pane whenever interacting the controls inside.

Hope this helps.

Regards,
Kalin
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
0
Tayyaba
Top achievements
Rank 1
answered on 24 May 2018, 09:09 AM

Hi Kalin,

custom flyout behavior still not solving the problem, on clicking any control in the winform if we force to keep the focus on the winform then it just flickers and no operation is performed, e.g. checking a checkbox inside this wont work. Even if some control has a context menu and if I right click on the control inside winform then the contextmenu will go back of the Flyout pane because we are manually forcing the pane to be in focus due to which context menu couldn't work properly.

Kindly suggest me some other workaround.

Thanks,

Tayyaba

0
Kalin
Telerik team
answered on 28 May 2018, 09:59 AM
Hi,

Please open up a support ticket and attach a sample project demonstrating the difficulties you are facing as well as custom flyout behavior implementation. This way we would be able to check it on our side and try to suggest another solution.

Regards,
Kalin
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Docking
Asked by
Tayyaba
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Tayyaba
Top achievements
Rank 1
Share this question
or