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

ActiveX control in a RadWindow

1 Answer 79 Views
Window
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 04 Aug 2014, 09:12 AM
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

1 Answer, 1 is accepted

Sort by
0
Peter
Top achievements
Rank 1
answered on 04 Aug 2014, 09:25 AM
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.
Tags
Window
Asked by
Peter
Top achievements
Rank 1
Answers by
Peter
Top achievements
Rank 1
Share this question
or