How to use the Progressbar with value += in a method?
<p>i want to create a progressbar. I set the value of the progressbar += a value (like +=5). At the start the value = 0.</p>

<p>The XAML code.</p>

<pre><code>&lt;ProgressBar x:Name="pgbStatus" Minimum="0" Maximum="100" /&gt;
</code></pre>

<p>I want to set the value of the progressbar like this:</p>

<pre><code>pgbStatus.Value += 10;
</code></pre>

<p>In the method are many rows like this to set the value up.</p>

<p>But if i start the programm the progressbar shows me the 0 value (=empty)and at the end the 100 value (=full).</p>

<p>Why the progressbar doesnt show me the steps between?</p>

<p>My Method looks like (if the messagebox shows up, the progressbar shows 100 =full):</p>

<pre><code>public void Method() {
    //do something
    pgbStatus.Value += 10;
    //do something
    pgbStatus.Value += 10;
    //do something
    MessageBox.Show("Finished");
    pgbStatus.Value = 0;
}
</code></pre>