title: How do you make a Xamarin.Forms Switch Invisible?
body: <p>I have a basic ListView of items in my app that has a switch attached to it.  My item class has a bool canChange attribute.  I want to bind the switch's visibility to the value of the canChange bool.  Therefore, if canChange == true, the switch will be visible, but if canChange == false, the switch will be invisible. </p>
  
  <p>Here is my Item Class:</p>
  
  <pre><code>public class Item
  {
      public string name { get; set;}
      public bool canClaim { get; set;}
  }
  </code></pre>
  
  <p>Here is my current XAML:</p>
  
  <pre><code>&lt;ListView.ItemTemplate&gt;
  &lt;DataTemplate&gt;
    &lt;ViewCell&gt;
      &lt;Grid&gt;
        &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="*"/&gt;
          &lt;ColumnDefinition Width="*"/&gt;
        &lt;/Grid.ColumnDefinitions&gt;
        &lt;Label Text="{Binding name}" Grid.Column="0"/&gt;
        &lt;Switch Grid.Column="1" IsVissible="{Binding canChange}"/&gt;
      &lt;/Grid&gt;
    &lt;/ViewCell&gt;
  &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>
  Right now I know that my App crashes becasue the "IsVissible" property doesn't exist, but is there another property or way to make the switch dissappear?  Another possible solution is for it to change to a lighter color so the user can recognize that the switch can't be toggled, although I don't know how to do that either.</p>