Skip to content

Instantly share code, notes, and snippets.

@julesx
Created June 2, 2017 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save julesx/5c88628b34ffa28ba968d3f8e46169c7 to your computer and use it in GitHub Desktop.
Save julesx/5c88628b34ffa28ba968d3f8e46169c7 to your computer and use it in GitHub Desktop.
Frame differences between iOS and Android
<StackLayout Orientation="Vertical" Margin="0,10,0,0">
<Label Text="FUNCTIONS" FontSize="Micro" FontAttributes="Bold" HorizontalOptions="Center" Margin="0,0,0,2" />
<Frame Margin="10,0,10,10" Padding="20,5">
<ListView ItemsSource="{Binding MenuItems}" Footer="{Binding}" HasUnevenRows="True">
<ListView.Behaviors>
<behavior:ListBoxDeselectSelectedItemBehavior />
</ListView.Behaviors>
<ListView.ItemTemplate>
<DataTemplate>
<controls:EnhancedViewCell Command="{Binding CmdMenuItemTapped}" Accessory="DisclosureIndicator">
<Grid Margin="15,5,0,5" Padding="0,4">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Image Grid.Column="0" Source="{Binding Icon}" VerticalOptions="Center" />
<Label Grid.Column="1" Text="{Binding Text}" Margin="7,0,0,0" VerticalOptions="Center" />
</Grid>
</controls:EnhancedViewCell>
</DataTemplate>
</ListView.ItemTemplate>
<ListView.FooterTemplate>
<DataTemplate>
<Label />
</DataTemplate>
</ListView.FooterTemplate>
</ListView>
</Frame>
</StackLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment