Latest Development Blogs
Browse By Tag
I have wrote an activeX control and want to show it in a UXPage or UXWindow. when I added it to the UXPage, it can be shown in the designed preview, but when I run the Application and navigate to the page with the activeX control, it does not work,nothing can be seen.
if UXPage or UXWindow can not show an activeX control?
I solve this problem by setting the activeX control to be contained by a new WPF window.
And thanks for your help!
It is not possible for an ActiveX control to run inside of Silverlight.
my application is WPF windows host application, not website.
is the clientui wpf not supported for activeX control?
I'm using the walkthrough article: Hosting an ActiveX Control in WPF, and start create a simple test project which shows how to host ActiveX control in UXPage.
When I run the application, the ActiveX control appear and work as expected. I enclosed my simple project for reference.Should you find anything that I might miss during my attempt to reproduce the reported problem, please feel free to let me know.
I have found the cause of the problem. When I set the MainWindow style like the following:The ActiveX control does not work. The sample file link:(http://pan.baidu.com/s/1qWl0YHQ)
Thank you for the sample (ClientUIWPFNavApp1.zip - attached on soup soup's post on May 26, 2015).
I made a minor modification to UXPage1.xaml.cs by setting the URL of AxWMPLib.AxWindowsMediaPlayer to a media file which exist in my end.
axWmp.URL = @"C:\Users\Public\Videos\Sample Videos\野生动物.wmv";
axWmp.URL = @"C:\Windows\Media\tada.wav";
The result is (AllowsTransparency="True"): when user navigates to "ActiveX" page, I can hear that tada.wav is played. This proves that the ActiveX control works. It just can't be seen.
Next, I create another project which uses native WPF controls (without using ClientUI controls). Then set WindowStyle to None; and AllowsTransparency to True.
The result is similar. The ActiveX control works, but not visible.
In my opinion, it comes to a conclusion that enabling AllowsTransparency will causing ActiveX control becomes invisible. It isn't ClientUI bug since native WPF control show this behavior as well.
Please let me know if you have different thoughts.
Thank you for sharing the solution with us.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our forum. We would be happy to assist you again.
Forgot your password | Sign up
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname
Already a member? Sign in