Hosting a Win32 window in a WPF floating tear off tab

5 posts, 0 answers
  1. Seth
    Seth avatar
    3 posts
    Member since:
    May 2012

    Posted 11 May 2012 Link to this post

    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
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 11 May 2012 Link to this post

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

  3. UI for WPF is Visual Studio 2017 Ready
  4. Seth
    Seth avatar
    3 posts
    Member since:
    May 2012

    Posted 14 May 2012 Link to this post

    Miroslav,

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

    Cheers,
    Seth
  5. Christian
    Christian avatar
    2 posts
    Member since:
    Jun 2012

    Posted 19 Jul 2012 Link to this post

    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
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 20 Jul 2012 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready