2013年9月3日
摘要: 1:在app.xaml中加入需实现的样式,如: 1 2 19 View Code 注意:记得加入控件命名空间引用,如:xmlns:VectorModel="clr-namespace:VectorModel;assembly=VectorModel"2:在自定义控件构造函数中获取样式,如:this.Style = Application.Current.Resources["NodeStyle"] as Style;3:可以在类中再变换样式模板中控件的属性,比如在类中修改自定义样式Ellipse的填充颜色为red,如:public override vo 阅读全文
posted @ 2013-09-03 23:08 lui 阅读(196) 评论(0) 推荐(0) 编辑