title: Update progress bar using value present in an internal class
body: <p>The two code segments below are in different namespaces.  And the second code's access modifier is internal. I'm doing some operations there and I want to calculate the percentage and update in the MgmntApp progressbar. How can I do this?</p>
  <blockquote>
  <p>WpfApplication1</p>
  <p>MainWindow.xaml</p>
  </blockquote>
  <pre><code>&lt;Window x:Class=&quot;WpfApplication1.MainWindow&quot;
          xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
          xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
          Title=&quot;MainWindow&quot; Height=&quot;350&quot; Width=&quot;525&quot;&gt;
      &lt;Grid Height=&quot;204&quot;&gt;
          &lt;ProgressBar Height=&quot;35&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;57,83,0,0&quot; Name=&quot;progressBar1&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;346&quot; /&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  <p>I want to update the value of progress bar while doing a long-running operation in the class below.</p>
  <blockquote>
  <p>Different</p>
  <p>FileParser.cs</p>
  </blockquote>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  
  namespace Different
  {
      /// &lt;summary&gt;
      /// &lt;/summary&gt;
      internal class FileParser:ImageFileParser
      {
          ImageFileParser.GenerateCmds()
          {
              percentage=change;    //0 to 100
              //long time operation
          }
      }
  }
  </code></pre>