Socal code camp_usc

1,213 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,213
On SlideShare
0
From Embeds
0
Number of Embeds
730
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Socal code camp_usc

  1. 1.
  2. 2. WPF Styling Architecture<br />
  3. 3. About me<br />Sr. Consultant at Neudesic<br />12 years experience of Microsoft technologies<br />Currently working on WPF and WCF<br />Blog posts on mnabeelkhan.blogspot.com<br />
  4. 4. Agenda<br />What is meant by styles<br />Why we need styles<br />Key Concepts<br />Steps in generating a style <br />Demo<br />Questions<br />
  5. 5. What is meant by Style<br />Features that allow developers and designers to create visually compelling effects and to create a consistent appearance for the product (MSDN).<br />A convenient way to apply a set of property values to more than one element(MSDN).<br />
  6. 6. Why we need styles<br />Flexibility<br />Reduce the amount of core code<br />Accessibility<br />Separation of Layout from Content.<br />
  7. 7. Different Type of Styles<br />Inline styles.<br />CSS<br />WPF Styles Architecture.<br />
  8. 8. Inline StylesExample<br />
  9. 9. Inline StylesDisadvantages<br />Style information is provided for each control.<br />Lacking flexibility. <br />Cannot use as library between different projects.<br />Maintainability – Very difficult to maintain as changes had to be broad.<br />No separation between layout and Content.<br />
  10. 10. WPF Styling Architecture<br />
  11. 11. Style Flow<br />
  12. 12. Styles ArchitectureKey points<br />Theme is at the top level.<br />Theme consists of different Control Styles that are building block for a theme.<br />Each Control Style consists of General style, Layout style and fonts.<br />General Style consists of brushes.<br />Brushes consists of primitive colors.<br />
  13. 13. Styles ArchitectureAdvantages<br />Layout and content style is separated.<br />Several themes can be developed that have similar structure.<br />Themes can be used cross applications as Style libraries.<br />Flexibility<br />Easily maintainable.<br />Easy to make simple changes.<br />
  14. 14. WPF Styles Architecture<br />Demo<br />
  15. 15. WPF Styles Architecture<br />Questions<br />
  16. 16. Contact<br />http://mnabeelkhan.blogspot.com/<br />mnabeekhan@gmail.com<br />

×