Skip to main content
Home Forums Silverlight Programming Programming with .NET - General How can I obtain the ID of the silverlight host DIV?
1 replies. Latest Post by luisabreu on September 25, 2007.
(0)
SLQuest
Member
10 points
11 Posts
09-25-2007 1:51 PM |
I have a silverlight control that can be dynamically loaded into a page. The control doesnt know the host div a priori, and needs to be able to reposition the DIV, or sometimes hide it. How can I achieve this?
Thanks.
luisabreu
Participant
1676 points
612 Posts
09-25-2007 3:18 PM |
hello.
well, i'm not sure, but i think that there still is no property that letsyou get a reference to the html control that hosts the object that loads your silverlight control. what you might do is pass the id of the control through the startup parameters. unfortunately, i think that there's still a bug that might prevent you from getting that info from the webapplication, so you'll have to resort to a workaround:
http://msmvps.com/blogs/luisabreu/archive/2007/06/20/getting-your-initparams-from-managed-code.aspx