开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜