XAML Guidelines

                     XAML Guidelines
                         周银辉

Jaime Rodriguez 在其博客上发表了XAML Gudeline的初稿。虽然说每个团队都有着自己的风格,但这可以作为一个不错的参考,标准/规范无太多所谓的好坏,要的是“统一”,可以点击这里下载, 或到这里查看原文
这里是目录:
Contents
Introduction ........................................................................................ 1
Why XAML guidelines? .......................................................................... 1
Come on, get to the guidelines. Please! .................................................. 1
Overall Project Organization .................................................................. 2
Naming conventions ............................................................................. 3
Scenario 1: Naming elements within a scene ........................................... 3
Scenario 2: Naming elements within a template ....................................... 4
Organizing resources............................................................................ 5
Scenario 1: Organizing logical resources within a scene ........................... 5
Scenario 2: Organizing resources in a resource dictionary ........................ 6
Using static versus dynamic resources (in non-themed projects) .............. 8
Using static versus dynamic resources (in themed or skinned projects)...... 8
Using the xmlns prefix.......................................................................... 8
Using implicit styles versus explicit styles ............................................... 9
Wrapping control templates in styles ..................................................... 9
Templating inside Expression Blend ...................................................... 10
Referencing file-based resources (dictionaries, images, fonts, etc.) .......... 10
Declaring individual XAML elements ....................................................... 10
Converters ........................................................................................ 11
Commands ........................................................................................ 11
Theming (or more commonly skinning) ................................................. 12
Conclusion ........................................................................................ 13
Thanks ............................................................................................. 13

你可能感兴趣的:(ide)