title: Is it possible to bind BorderBrush of a WPF Border to a variable inside ViewModel class?
body: <p>Started writing my custom WPF window and I'd like to have colors inside the VM class along with ResizeThickness and all that stuff, to have color scheme editable in settings.</p>
  
  <p>Both of these work:</p>
  
  <pre><code>... BorderBrush = "Red" &gt;
  ... BorderBrush = "{StaticResource [SolidColorBrush from xaml dict]}" &gt;
  </code></pre>
  
  <p>But <code>... BorderBrush = "{Binding [SolidColorBrush from VM class]" &gt;</code> does absolutely nothing.</p>
  
  <p>Obviously DataContext is set as said VM class in code of a window constructor.</p>
  
  <p>Second best idea I have is to just edit the xaml and ask for a restart.</p>