title: Color TextBlock depending on enum value
body: <p>I'm working on WPF with a MvvM model.</p>
  
  <p>I have a view containing Texblocks. It display information about ID (from a document and from a database) :</p>
  
  <pre><code>&lt;GroupBox Grid.Row="1" Grid.Column="0" Header="ID Informations"&gt;
      &lt;StackPanel Orientation="Vertical"&gt;
          &lt;TextBlock Text="DataBase surname: "/&gt;
          &lt;TextBlock Text="{Binding Model.Db_SURNAME}" FontWeight="Bold"/&gt;
          &lt;TextBlock Text="Document surname: "/&gt;
          &lt;TextBlock Text="{Binding Model.Dc_SURNAME}" FontWeight="Bold"/&gt;
          &lt;TextBlock Text="DataBase forename: "/&gt;
          &lt;TextBlock Text="{Binding Model.Db_FORENAME}" FontWeight="Bold"/&gt;
          &lt;TextBlock Text="Document forename: "/&gt;
          &lt;TextBlock Text="{Binding Model.Dc_FORENAME}" FontWeight="Bold"/&gt;
      &lt;/StackPanel&gt;
  &lt;/GroupBox&gt;
  </code></pre>
  
  <p>I have an enum containing an error code :</p>
  
  <pre><code>[Flags]
  public enum errorID
  {
      OK = 1&lt;&lt;0,
      SURNAME_DIFF = 1 &lt;&lt; 1,
      FORENAME_DIFF = 1 &lt;&lt; 2
  }
  </code></pre>
  
  <p>And my model is wrote like this :</p>
  
  <pre><code>private String _db_SURNAME;
  public String Db_SURNAME
  {
      get { return _db_SURNAME; }
      set { SetProperty(ref _db_SURNAME, value); }
  }
  [...]
  
  private errorID _errorID;
  public errorID ErrorID
  {
      get { return _errorID; }
      set { SetProperty(ref _errorID, value); }
  }
  </code></pre>
  
  <p>I want that both of my textblocks displaying <code>Model.Db_SURNAME</code> and <code>Model.Dc_SURNAME</code> are colored in red when <code>ErrorID.HasFlag(errorID.SURNAME_DIFF )</code>. And also for <code>Forname</code>.</p>
  
  <p>How can I do ?</p>