Skip to content

Instantly share code, notes, and snippets.

@rdelrosario
Created January 12, 2022 20:43
Show Gist options
  • Save rdelrosario/57661d0607fe4b46d288c372c3eddc15 to your computer and use it in GitHub Desktop.
Save rdelrosario/57661d0607fe4b46d288c372c3eddc15 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="UberClone.Views.MapPage" >
<Grid RowSpacing="0"
x:Name="layout"
VerticalOptions="FillAndExpand"
RowDefinitions="Auto, *">
...
<local:SearchContentView IsVisible="false"
Grid.Row="1"
x:Name="searchContentView">
<local:SearchContentView.Triggers>
<DataTrigger TargetType="local:SearchContentView"
Binding="{Binding State}"
Value="{x:Static helpers:XUberState.SearchingDestination}">
<Setter Property="IsVisible" Value="True"/>
</DataTrigger>
</local:SearchContentView.Triggers>
</local:SearchContentView>
</Grid>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment