
WPF 개발 중, Border의 Background 색상을 Data Binding을 사용하여 할당하고자 했다. Background의 데이터 타입은 Brush이기 때문에 해당 타입의 변수를 선언하여 ViewModel에서 사용했다. private Brush _statusBackgroundColor;public Brush StatusBackgroundColor { get => _statusBackgroundColor; set => SetProperty(ref _statusBackgroundColor, value); }switch (status){ case STATUS_SUCCESS: StatusBackgroundColor = Brushes.Green; break; case STATUS_FAIL: ..