摘要: 以下内容参考一个博客文章以及MSDN上的相应内容。一、自定义属性给一个控件添加自定义属性按如下方法即可: public static readonly DependencyProperty RadiusXProperty = DependencyProperty.Register("RadiusX", typeof(double), typeof(this), new UIPropertyMetadata(0.0)); public double RadiusX { get { return (double)... 阅读全文
posted @ 2012-03-13 15:19 cuero 阅读(2705) 评论(0) 推荐(0) 编辑