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

 Posted by Ozkary on 3/2/2009 | Category: Silverlight Interview questions | Views: 5923

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}">

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response

More Interview Questions by Ozkary