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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章