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

Hosting a Win32 window in a WPF floating tear off tab

4 Answers 85 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Seth
Top achievements
Rank 1
Seth asked on 11 May 2012, 06:07 AM
Hi guys,

I have described my problem with hosting a Win32 OSG (built on OpenGL) control in RadDocking for WPF here:
http://stackoverflow.com/questions/10544938/hosting-a-win32-window-in-a-wpf-floating-tear-off-tab

Do you have any ideas what might cause the problem?

Thanks,
Seth

4 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 11 May 2012, 09:53 AM
Hi Seth,

I made this thread public to let other users find the response and see the sample project.

The RadDocking control uses transparent WPF windows to display its ToolWindows by default and as a platform limitation of WPF, you cannot display any non-WPF content in such transparent windows. What you could do is to make the windows non-transparent by setting the RadWindowInteropHelper.AllowTransparency attached property of ToolWindow to False. This could be achieved using a custom GeneratedItemsFactory. Please refer to the attached sample project.

Hope this helps.

Greetings,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Seth
Top achievements
Rank 1
answered on 14 May 2012, 06:12 AM
Miroslav,

Thanks, that did the trick adding the 'NonTrasparentWindowsGeneratedItemsFactory' factory class.

Cheers,
Seth
0
Christian
Top achievements
Rank 1
answered on 19 Jul 2012, 07:05 PM
I had the same problem and this solution works, but is it possible to do this only for selected tool windows?  I don't want to have my regular tool windows (not hosting winforms) be non transparent.

Thanks
0
Miroslav Nedyalkov
Telerik team
answered on 20 Jul 2012, 08:01 AM
Hi Christian,

Creating different types of ToolWindows is not possible with the current implementation of the GeneratedItemsFactory - the factory produces the items without knowing how they are going to be used.

All the best,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Seth
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Seth
Top achievements
Rank 1
Christian
Top achievements
Rank 1
Share this question
or