Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?>
- <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:viewmodels="clr-namespace:XSeek.ViewModels"
- x:DataType="viewmodels:SearchViewModel"
- x:Class="XSeek.Views.Search"
- Title="Search"
- Shell.NavBarIsVisible="False">
- <ContentPage.Content>
- <StackLayout>
- <SearchBar x:Name="searchBar" Placeholder="Search items..." SearchCommand="{Binding SearchCommand}" SearchCommandParameter="{Binding Text, Source={x:Reference searchBar}}"/>
- <ScrollView>
- <CollectionView ItemsSource="{Binding ResponseResponses}">
- <CollectionView.ItemTemplate>
- <DataTemplate>
- <Grid RowDefinitions="Auto, Auto, Auto">
- <Label Grid.Row="0" Text="{Binding Username}"/>
- </Grid>
- </DataTemplate>
- </CollectionView.ItemTemplate>
- </CollectionView>
- </ScrollView>
- </StackLayout>
- </ContentPage.Content>
- </ContentPage>
Advertisement
Add Comment
Please, Sign In to add comment