title: WPF - Converter hides dependency on a DependencyProperty
body: <p>I have a TextBlock (acutally a whole bunch of TextBlocks) where I set the Text to "" if a DependencyProperty in my ViewModel is set to Visiblity.Hidden.  I do this via a converter as follows:</p>
  
  <pre><code>&lt;TextBlock Margin="0,0,5,0"&gt;
    &lt;TextBlock.Text&gt;
      &lt;Binding Converter="{StaticResource GetVisibilityOfColumnTitles}"
               Path="Name" /&gt;
    &lt;/TextBlock.Text&gt;
  &lt;/TextBlock&gt;
  </code></pre>
  
  <p>The converter looks like this:</p>
  
  <pre><code>public object Convert(object value, Type targetType, 
                        object parameter,System.Globalization.CultureInfo culture)
  {
      if (MainMediator.Instance.VisibilityOfWorkItemColumnTitles 
          == Visibility.Visible)
          return value;
      else
          return "";     
  }
  </code></pre>
  
  <p>I admit that this is a bit convoluted way to do this, but I have my reasons (DataContext complications and spacing for the TextBlock)</p>
  
  <p>The problem I have is that when VisibilityOfWorkItemColumnTitles is changed, even though it is a dependency property, TextBlock.Text does not realize there is a dependency there (because it's used in the converter). </p>
  
  <p>Is there a way in the code behind (preferably in the converter) to say, this TextBlock wants to update this binding when VisibilityOfWorkItemColumnTitles changes?</p>