How to apply style elements in a Silverlight project

Explain how to apply style elements in a Silverlight project

Application resources utilize the style elements for supporting the forms. The App.xaml file could be used to contain an application resource XML construct. Each style’s target type is set to the control that needs the style.

App.xaml:
<Application.Resource>
<Style x:Key="MyBorder" TargetType="Border">
<setter property="width" value="3">
</style>

Page.xaml:
<Border Style="{StaticResource MyBorder}">
...
</Border>
Features and benefits of Silverlight
Features and benefits of Silverlight - The following are the features of SilverLight: 1. Built in CLR engine is available for delivering a super high performance execution environment for the browser...
When would one use Silverlight instead of ASP.NET AJAX?
Silverlight media experiences and Rich Internet Applications can be enhanced by the existing ASP.NET AJAX applications. Web applications and ASP.NET AJAX technologies are integrated in Silverlight...
When to use Silverlight instead of WPF?
Silverlight is used by customers for broader reach of interactive media content and browser-based rich interactive, high performance applications...
Post your comment