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
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

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
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

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
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