Created
June 2, 2017 15:16
-
-
Save julesx/5c88628b34ffa28ba968d3f8e46169c7 to your computer and use it in GitHub Desktop.
Frame differences between iOS and Android
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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