Styles are the means using which you can implement a consistent look and behavior in WPF applications. Using styles, you can easily change the visual appearance of a control. Through styles, you can apply a set of one or more properties, resources, and so on to one or more elements. Consider a UI screen designed with plenty of controls. The controls belonging to each type, such as TextBox or Button need to look similar for overall consistency. This can be achieved through styles. The Style element is used to define styles. It has a TargetType attribute specifying the object to which the style will be applied and a Key attribute uniquely identifying the style. A Style element contains one or more Setter elements, each of which has a Property attribute and a Value attribute.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to
C#,.NET,Architect,Intermediate,VS2010,.Net,Articles,Computer Tutorials,XAML,Styles,WPF,WPF Styles,Window Presentation Foundation