Find the HTML element that contains the Silverlight control

Is there a way to find an HTML element on a page that contains a Silverlight control from Silverlight?

+1


source to share


2 answers


Use this:



System.Windows.Browser.HtmlElement plugin = System.Windows.Browser.HtmlPage.Plugin;

      

+2


source


Use firefox and install FireBug

Then use the test button and highlight the Silverlight part on the page. This should automatically show you the HTML for that part of the page and show you the element containing the silverlight.example control by doing it for the flash below - or directly linked here: http://mikesingleton.net/images/firebug_ex.png , since embedding does not work



http://mikesingleton.net/images/firebug_ex.png

0


source







All Articles