title: How should I update from Task the UI Thread?
body: <p>I have a task that performing some heavy work.
  I need to path it's result to <code>LogContent</code></p>
  
  <pre><code>Task&lt;Tuple&lt;SupportedComunicationFormats, List&lt;Tuple&lt;TimeSpan, string&gt;&gt;&gt;&gt;.Factory
      .StartNew(() =&gt; DoWork(dlg.FileName))
      .ContinueWith(obj =&gt; LogContent = obj.Result);
  </code></pre>
  
  <p>This is the property:</p>
  
  <pre><code>public Tuple&lt;SupportedComunicationFormats, List&lt;Tuple&lt;TimeSpan, string&gt;&gt;&gt; LogContent
  {
      get { return _logContent; }
      private set
      {
          _logContent = value;
          if (_logContent != null)
          {
              string entry = string.Format("Recognized {0} log file",_logContent.Item1);
              _traceEntryQueue.AddEntry(Origin.Internal, entry);
          }
      }
  }
  </code></pre>
  
  <p>Problem is that <code>_traceEntryQueue</code> is data bound to UI, and of cause I will have exception on code like this.</p>
  
  <p>So, my question is how to make it work correctly?</p>