WPF 颜色转换

从字符串到画刷:

var converter = new System.Windows.Media.BrushConverter();
var brush = (Brush)converter.ConvertFromString("#FFFFFF90");
Fill = brush;

 

posted @ 2015-04-16 11:19  马语者  阅读(953)  评论(0编辑  收藏  举报