c# - Calling a control from 3rd Party DLL -


i using control dll in html page as

<object id="att"  width="100%" height="100%"          classid="clsid:e20ec898-e4ee-4a20-a5a5-e10144fdc6ba"          codebase="avtechmediacontrol.cab#version=1,1,7,6" viewastext> </object> 

but want access same wpf application.

when try choose dll in toolbox, following error,

“the following controls added toolbox not enabled in active designer”

i need way add wpf project. not want go webbrowser control.

activex controls cannot directly added wpf view, can hosted inside of windows form control. , wpf can host winforms controls. microsoft has walk through describing process.

the short description of you'll add windowsformhost xaml view. msdn walk though shows being done in code behind, windowsformhost can added in xaml. you'll set child of windowsformhost activex control. have done in code behind there no support adding activex controls in xaml editor.

you need aware of behavior of hosted control in wpf. no wpf content can overlap hosted control. hosted control draw on top of wpf content.


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -