Guest User

Untitled

a guest
Oct 16th, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.21 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
  3.             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4.             xmlns:viewmodels="clr-namespace:XSeek.ViewModels"
  5.             x:DataType="viewmodels:SearchViewModel"
  6.             x:Class="XSeek.Views.Search"
  7.             Title="Search"
  8.             Shell.NavBarIsVisible="False">
  9.     <ContentPage.Content>
  10.         <StackLayout>
  11.             <SearchBar x:Name="searchBar" Placeholder="Search items..." SearchCommand="{Binding SearchCommand}" SearchCommandParameter="{Binding Text, Source={x:Reference searchBar}}"/>
  12.             <ScrollView>
  13.                 <CollectionView ItemsSource="{Binding ResponseResponses}">
  14.                     <CollectionView.ItemTemplate>
  15.                         <DataTemplate>
  16.                             <Grid RowDefinitions="Auto, Auto, Auto">
  17.                                 <Label Grid.Row="0" Text="{Binding Username}"/>
  18.                             </Grid>
  19.                         </DataTemplate>
  20.                     </CollectionView.ItemTemplate>
  21.                 </CollectionView>
  22.             </ScrollView>
  23.         </StackLayout>
  24.     </ContentPage.Content>
  25. </ContentPage>
Advertisement
Add Comment
Please, Sign In to add comment