Is it possible to access a Silverlight control via the COM automation model?
Posted
by dlanod
on Stack Overflow
See other posts from Stack Overflow
or by dlanod
Published on 2010-03-26T13:00:14Z
Indexed on
2010/03/26
13:03 UTC
Read the original article
Hit count: 420
What I'm trying to attempt is to access methods on a Silverlight control via the COM automation model. Theoretically it should be possible, as exposing the Silverlight control's methods as scriptable members exposes them through an IDispatch interface. I have been able to access the IDispatch interface through the automation model correctly but when I attempt to call a method on the exposed interface via Invoke it crashes.
I was wondering if anyone knew whether this was expected behaviour, i.e. I'm violating some basic sandboxing requirement, or whether this should work and it is just something in my implementation that needs correcting? Cheers.
© Stack Overflow or respective owner