Did You Know That… the Silverlight object has properties, methods and events and a sub-object called content

It is useful to think of the Silverlight object as having its own object model. Within that object model, some properties, methods and events are directly accessible, such as onError,  Settings,  Source, InitParameters and CreateObject.

In addition, the Silverlight object has a sub-object named content and a second sub-object named settings

The content sub-object

it is common to access properties of the content sub-object, especially as this is how you access FindName().


However other useful properties of the content sub-object include ActualHeight. ActualWidth, CreateFromXaml, FullScreen and OnResize, among others.

The settings sub-object

Perhaps the most important properties of the settings sub-object are Background and Windowless. This sub-object also includes MaxFrameRate and a few others.

All of this is well documented under the topic Silverlight Object Models and Scripting to the Silverlight Plug-In in the Silverlight 1.0 Documentation. Scroll down to Scripting to the Silverlight Plug-In where you'll find three very useful tables

kick it on DotNetKicks.com

About Jesse Liberty

Jesse Liberty has three decades of experience writing and delivering software projects and is the author of 2 dozen books and a couple dozen Pluralsight & LinkedIn Learning courses. He was a Senior Technical Evangelist for Microsoft, a Distinguished Software Engineer for AT&T, a VP for Information Services for Citibank and a Software Architect for PBS. He is a Xamarin Certified Mobile Developer and a Xamarin MVP and a Microsoft MVP.
This entry was posted in z Silverlight Archives. Bookmark the permalink.