摘要: 对于 WPF,可以为类型指定 ContentPropertyAttribute 特性 语法 [ContentProperty(Name = "Content")] public class Button { public object Content { get; set; } } 这段代码表示,在 阅读全文
posted @ 2022-08-07 02:50 小林野夫 阅读(641) 评论(0) 推荐(0)
摘要: 数据模板(DataTemplate) 在.net 中我们可以把2022/8/6格式化为多种样式如:2022-8-6、2022年8月6日等 在WPF中扩展了.net格式化方式,通过数据模板(DataTemplate)可以将数据格式化成图片,动画的方式;例如:2022/8/6可以格式化成日历、时钟等。 阅读全文
posted @ 2022-08-07 02:16 小林野夫 阅读(592) 评论(0) 推荐(0)
原文链接:https://www.cnblogs.com/cdaniu/