CustomPickeriOS.xaml 1.3 KB

12345678910111213141516171819202122232425
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ContentView xmlns="http://xamarin.com/schemas/2014/forms"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. x:Class="comal.timesheets.CustomPickeriOS">
  5. <ContentView.Content>
  6. <Grid>
  7. <Grid.RowDefinitions>
  8. <RowDefinition Height="50" x:Name="buttonRow"/>
  9. <RowDefinition Height="0" x:Name="listViewRow"/>
  10. </Grid.RowDefinitions>
  11. <Button Grid.Row="0" x:Name="selectBtn" Text="Select an Option" CornerRadius="10"
  12. Clicked="SelectBtn_Clicked" TextColor="White" BackgroundColor="#15C7C1" VerticalOptions="FillAndExpand"/>
  13. <ListView Grid.Row="1" x:Name="listView" HasUnevenRows="True" IsVisible="false">
  14. <ListView.ItemTemplate>
  15. <DataTemplate>
  16. <ViewCell Tapped="Cell_Tapped">
  17. <Label Text="{Binding OptionString}" HorizontalOptions="Center" VerticalOptions="Center" LineBreakMode="WordWrap"
  18. HorizontalTextAlignment="Center" FontSize="Medium"/>
  19. </ViewCell>
  20. </DataTemplate>
  21. </ListView.ItemTemplate>
  22. </ListView >
  23. </Grid>
  24. </ContentView.Content>
  25. </ContentView>