原文:WPF 颜色转换
从字符串到画刷:
var converter = new System.Windows.Media.BrushConverter(); var brush = (Brush)converter.ConvertFromString("#FFFFFF90"); Fill = brush;
原文地址:https://www.cnblogs.com/lonelyxmas/p/9559548.html
时间: 2024-11-10 13:42:44
原文:WPF 颜色转换
从字符串到画刷:
var converter = new System.Windows.Media.BrushConverter(); var brush = (Brush)converter.ConvertFromString("#FFFFFF90"); Fill = brush;
原文地址:https://www.cnblogs.com/lonelyxmas/p/9559548.html