Silverlight modify hosting html page
Is there any way to modify an开发者_开发百科 html page hosting a Silverlight page using the embedded Silverlight application? I already know how to access existing html elements, but I'm not sure how to add and remove elements dynamically. Thanks in advance.
Once you got hold of an HtmlElement, use its API to add/remove an element, i.e. use the AppendChild, RemoveChild methods. Or set properties of an element with SetProperty. See MSDN for the full API.
精彩评论