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

posted @   周银辉  阅读(3041)  评论(1编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· [AI/GPT/综述] AI Agent的设计模式综述
点击右上角即可分享
微信分享提示