title: Refresh a label on WPF page
body: <p>How do I refresh a label on WPF page. </p>
  
  <p>Basically the label displays how many agents there are, so when I put all the users details in and click Create User. When I click the button, I need the label to refresh on that page.</p>
  
  <p>I have tried setting the content to null and then reloading the data.</p>
  
  <pre><code>int NumberOfAgents = _Users.Where(w =&gt; w.RoleID == _Role.FirstOrDefault(a =&gt; a.RoleType == "Agent").RoleID).ToList().Count();
  
  lblCountAgent.Content=null 
  lblCountAgents.Content = NumberOfAgents.ToString();
  </code></pre>
  
  <p>But this does not seem to work.</p>
  
  <p>If anyone could help me out on this that would be great.</p>