WPF颜色设置
作者:互联网
前端
<Grid Background="#ffffff" x:Name="brdStateBackground" />
后台
using System.Windows.Media;
brdStateBackground.Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#ffffff"));
标签:ConvertFromString,颜色,设置,Windows,ColorConverter,System,Background,Media,WPF 来源: https://www.cnblogs.com/wesson2019-blog/p/13343913.html