Guest User

Untitled

a guest
Nov 18th, 2016
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.83 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.             x:Class="MyApp.MyFolder.MyPage">
  5.   <StackLayout>
  6.     <Label Text="text2" VerticalOptions="Center" HorizontalOptions="Center" />
  7.     <StackLayout Padding="0,20,0,20">
  8.     <Button Text="text" Clicked="onclick" BackgroundColor="#009688"></Button>
  9.    
  10.     </StackLayout>
  11.     <Label Text="List Type" VerticalOptions="Center" HorizontalOptions="Center" />
  12.     <ListView x:Name="lstItems" RowHeight="60" IsEnabled="False">
  13.       <ListView.ItemTemplate>
  14.         <DataTemplate>
  15.           <ViewCell>
  16.             <StackLayout Orientation="Horizontal" HorizontalOptions="Fill" Padding="0,2,0,2">
  17.               <StackLayout Padding="5,5,5,5">
  18.                 <Image Source="{Binding source}" HorizontalOptions="End" HeightRequest="40" WidthRequest="40" />
  19.               </StackLayout>
  20.               <StackLayout Orientation="Vertical" Spacing="1">
  21.                 <Label Text = "{Binding name}" HeightRequest="20" FontAttributes="Bold"/>
  22.                 <Label Text = "{Binding data, StringFormat='{0:F0}'}" />
  23.               </StackLayout>
  24.               <StackLayout HorizontalOptions="EndAndExpand" Padding="0,0,15,0" Orientation="Horizontal">
  25.                 <Image Source="delete.jpg" HeightRequest="20" WidthRequest="20">
  26.                   <Image.GestureRecognizers>
  27.                     <TapGestureRecognizer
  28.                        Command="{Binding TapCommand}"
  29.                        CommandParameter="Image1" />
  30.                   </Image.GestureRecognizers>
  31.                 </Image>
  32.               </StackLayout>
  33.             </StackLayout>
  34.           </ViewCell>
  35.         </DataTemplate>
  36.       </ListView.ItemTemplate>
  37.     </ListView>
  38.   </StackLayout>
  39. </ContentPage>
Advertisement
Add Comment
Please, Sign In to add comment