O'Reilly logo

Mastering LOB Development for Silverlight 5: A Case Study in Action by Rocío Serrano, Braulio Díez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

DOM handling from Silverlight

Now, let's check how to go deeper and handle the DOM object and access the properties of a given HTML element.

HtmlDocument

From the HtmlPage object, an instance of the HtmlDocument object can also be obtained. With the HtmlDocument object, it is possible to:

  • Search for page elements (by name, class, or type), via the GetElementById and GetElementByTagName methods
  • Access the list of the URL parameters
  • Obtain the cookies

HtmlElement

When we search for a page element via the HtmlDocument object, we obtain an HtmlElement object. This class provides a series of methods which make it possible to handle the DOM objects. Nevertheless, unless it is strictly necessary, it would be more advisable to modify the HTML objects of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required