summaryrefslogtreecommitdiff
path: root/PagesGallery/PagesGallery/EventsPage.xaml
blob: ab1c14b90ea47c8638bc4c29e3ed70d9d0e32a71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="utf-8" ?>
<p:ListDataPage xmlns="http://xamarin.com/schemas/2014/forms"
                xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                xmlns:p="clr-namespace:Xamarin.Forms.Pages;assembly=Xamarin.Forms.Pages"
                xmlns:azure="clr-namespace:Xamarin.Forms.Pages.Azure;assembly=Xamarin.Forms.Pages.Azure"
                x:Class="PagesGallery.EventsPage"
                Title="Events"
                DetailTemplate="{StaticResource EventDetailTemplate}"
                Style="{StaticResource EventPageStyle}">
  <p:DataPage.DataSource>
    <azure:AzureDataSource>
      <azure:AzureDataSource.Source>
        <azure:AzureEasyTableSource Uri="http://evolvedemo.azurewebsites.net" TableName="Employee" />
      </azure:AzureDataSource.Source>
    </azure:AzureDataSource>
  </p:DataPage.DataSource>
  <p:DataPage.DefaultItemTemplate>
    <DataTemplate>
      <TextCell Text="{Binding Value[firstName]}" Detail="{Binding Value[companyName]}" />
    </DataTemplate>
  </p:DataPage.DefaultItemTemplate>
</p:ListDataPage>