Пример #1
0
 public void SetBorderColor(Border view, uint?color)
 {
     view.BorderBrush = color.HasValue
         ? new SolidColorBrush(ColorHelpers.Parse(color.Value))
         : s_defaultBorderBrush;
 }
Пример #2
0
 public void SetBackgroundColor(Border view, uint color)
 {
     view.Background = new SolidColorBrush(ColorHelpers.Parse(color));
 }