title: WPF How to refresh a user control
body: <p>I tried <code>UIElement.InvalidateVisual</code> but it didn't work. I read about this <code>INotifyPropertyChanged</code> but I don't know exactly how it is used, not to mention I'm talking about User Controls, it seems I need to use that <code>INotifyPropertyChanged</code> to all of the controls.</p>
  
  <p>I'm having trouble refreshing combo boxes changes and data grid changes, what I did is to close and reopen the form but I don't want that approach because it seems sluggish in re-executing every user control constructors.</p>
  
  <p>this is my code:</p>
  
  <pre><code>if (linkSource.ToString() == "BreedList.xaml")
  {
      this.InvalidateVisual();
  }
  else if (linkSource.ToString() == "PetTypeList.xaml")
  {
      this.InvalidateVisual();
  }
  else if (linkSource.ToString() == "IrritantList.xaml")
  {
      this.InvalidateVisual();
  }
  </code></pre>