ActiveX control in a RadWindow

2 posts, 0 answers
  1. Peter
    Peter avatar
    10 posts
    Member since:
    Apr 2014

    Posted 04 Aug 2014 Link to this post

    Hi,

    I've noticed hosting an ActiveX control in a (standalone) RadWindow doesn't work. Following the correct steps (as mentioned here), the ActiveX control isn't visible. I put this in a test-project and when I host it in a normal WPF Window, I can see the control. Is this a known problem?

    The same goes for an ActiveX control on a HTML page hosted in a WebBrowser. The HTML page will show the ActiveX control correctly in a normal browser, and in a WebBrowser in a WPF Window. Change that WPF Window to a (standalone) RadWindow, and the ActiveX control will no longer be visible.

    I mentioned "standalone" twice. What I mean is when you remove the StartupUri from App.xaml and add the following in App.xaml.cs:

    var mainWindow = new MainWindow();
    mainWindow.Show();

    If you don't do this, you will see the RadWindow inside a WPF Window and the Active X control still works. But seeing a RadWindow inside a WPF Window is strange.

    So how can I get an ActiveX control to be visible inside a RadWindow?

    Thanks,
    Peter
  2. Peter
    Peter avatar
    10 posts
    Member since:
    Apr 2014

    Posted 04 Aug 2014 in reply to Peter Link to this post

    Well, searching further led me to this post. The workaround mentioned there works for me:

    RadWindowInteropHelper.SetAllowTransparency(this, false);

    I'm using a theme that doesn't need a nice shadow from my main window. If you do, this doesn't look pretty however.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top