前端:
<pages:PopupPage.Content>
<Frame BackgroundColor="White" Margin="60" CornerRadius="6" Padding="0"
VerticalOptions="Center" HorizontalOptions="Center">
<StackLayout>
<Grid Margin="24,16,24,16">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="360"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<StackLayout VerticalOptions="Start" Grid.Row="0">
<StackLayout Orientation="Horizontal" HeightRequest="30">
<Label x:Name="title" FontSize="22" TextColor="#081f2c" HorizontalOptions="StartAndExpand"/>
<Image Source="close" HorizontalOptions="End">
<Image.GestureRecognizers>
<TapGestureRecognizer Tapped="CloseButton_Clicked"></TapGestureRecognizer>
</Image.GestureRecognizers>
</Image>
</StackLayout>
<Frame BorderColor="#e0e0e0" HasShadow="False" Margin="0,15,0,15" CornerRadius="5" Padding="5,0,5,0">
<imageentry:ImageEntry TextColor="#464646" Image="ic_search" Placeholder="Search" HorizontalOptions="FillAndExpand"
ImageHeight="15" ImageWidth="15" Margin="0,0,0,0" TextChanged="ImageEntry_TextChanged"/>
</Frame>
</StackLayout>
<ScrollView Grid.Row="1">
<StackLayout x:Name="collection">
<BindableLayout.ItemTemplate>
<DataTemplate>
<StackLayout IsVisible="{Binding IsFiltered}">
<StackLayout HorizontalOptions="FillAndExpand" Orientation="Vertical" Padding="0, 10, 0, 10"
HeightRequest="20" MinimumHeightRequest="20">
<StackLayout.GestureRecognizers>
<TapGestureRecognizer Tapped="ItemTapped"/>
</StackLayout.GestureRecognizers>
<StackLayout Orientation="Horizontal">
<Label Text="{Binding Name}" HorizontalOptions="StartAndExp