title: Xamarin Forms - Show / Hide Frame based off Picker
body: <p>I have a picker that has two values.</p>
  <ol>
  <li>Click and Collect</li>
  <li>Shipping</li>
  </ol>
  <p>How would I display the correct frame according to what was selected in the picker?</p>
  <p>For example if user selects &quot;Click and Collect&quot; it will display the &quot;frameClickandCollect&quot;. If the user select &quot;Shipping&quot; it will display the &quot;frameShipping&quot;.</p>
  <p>Here's my XAML code:</p>
  <pre><code>&lt;Frame x:Name=&quot;frameDeliveryOptions&quot; BorderColor=&quot;LightGray&quot; CornerRadius=&quot;10&quot; HasShadow=&quot;False&quot;&gt;
     
      &lt;StackLayout&gt;
        
        &lt;Label Text=&quot;Delivery Options:&quot; FontSize=&quot;18&quot; TextColor=&quot;Green&quot; FontAttributes=&quot;Bold&quot;/&gt;
           
        &lt;Picker x:Name=&quot;DeliveryOptionPicker&quot; Title=&quot;Select a delivery option&quot; TitleColor=&quot;Black&quot;&gt;
              
              &lt;Picker.ItemsSource&gt;
                 
                 &lt;x:Array Type=&quot;{x:Type x:String}&quot;&gt;
                 &lt;x:String&gt;Click and Collect&lt;/x:String&gt;
                 &lt;x:String&gt;Shipping&lt;/x:String&gt;
                 &lt;/x:Array&gt;
  
              &lt;/Picker.ItemsSource&gt;
        
         &lt;/Picker&gt;
      
       &lt;/StackLayout&gt;
  
  &lt;/Frame&gt;
  
  &lt;Frame x:Name=&quot;frameClickandCollect&quot; BorderColor=&quot;LightGray&quot; CornerRadius=&quot;10&quot; HasShadow=&quot;False&quot;&gt;
     
      &lt;StackLayout&gt;
        
        &lt;Label Text=&quot;Click and Collect Yo&quot; FontSize=&quot;18&quot; TextColor=&quot;Green&quot; FontAttributes=&quot;Bold&quot;/&gt;
        
      &lt;/StackLayout&gt;
  
  &lt;/Frame&gt;
  
  &lt;Frame x:Name=&quot;frameShipping&quot; BorderColor=&quot;LightGray&quot; CornerRadius=&quot;10&quot; HasShadow=&quot;False&quot;&gt;
     
      &lt;StackLayout&gt;
        
        &lt;Label Text=&quot;Shipping Yo&quot; FontSize=&quot;18&quot; TextColor=&quot;Green&quot; FontAttributes=&quot;Bold&quot;/&gt;
        
      &lt;/StackLayout&gt;
  
  &lt;/Frame&gt;
  
  </code></pre>