title: How can I set the visibility of a label in XAML so it becomes visible where the Text property of that label is not null?
body: <p>How can I set the visibility of a label in XAML so it becomes visible where the Text property of that label is not null?</p>
  
  <p>I have this code:</p>
  
  <pre><code>&lt;Label Grid.Row="0" Text="*" IsVisible="emptyLabel1 == null"/&gt;
  &lt;Label Grid.Row="0" Text="{Binding EmptyLabel1}" IsVisible="emptyLabel1 == null"/&gt;
  &lt;Label Grid.Row="1" Text="*" IsVisible="emptyLabel2 == null"/&gt;
  &lt;Label Grid.Row="1" Text="{Binding EmptyLabel2}" IsVisible="emptyLabel2 == null"/&gt;
  </code></pre>
  
  <p>In my VM it looks like this:</p>
  
  <pre><code>    private string emptyLabel1;
      private string emptyLabel2;
      public string EmptyLabel1
      {
          get { return emptyLabel1; }
          set
          {
              if (value != emptyLabel1)
              {
                  emptyLabel1 = value;
                  NotifyPropertyChanged("EmptyLabel1");
              }
          }
      }
      public string EmptyLabel2
      {
          get { return emptyLabel2; }
          set
          {
              if (value != emptyLabel2)
              {
                  emptyLabel2 = value;
                  NotifyPropertyChanged("EmptyLabel2");
              }
          }
      }
  </code></pre>
  
  <p>My problem is that it seems like I cannot put any conditional kind of check into the IsVisible.</p>