Home > DeveloperSection > Interviews > How can style elements be applied? (similar to a CSS file/skins)

Posted on    March-17-2011 12:00 AM

 SilverLight SilverLight 
 1 Answer(s)
  1347  View(s)
Rate this:

Amit Singh

Total Post:565

Posted on    March-17-2011 12:00 AM

Styles elements are supported in the form of application resources. An app.xaml file can be created containing an application resource Xml construct. The target type for each style is set to the control on which the style needs to be applied.

<Style x:Key="MyBorder" TargetType="Border">
<setter property="width" value="5">

<Border Style="{StaticResource MyBorder}">

Don't want to miss updates? Please click the below button!

Follow MindStick