1234567891011121314151617181920212223242526272829303132333435363738 |
- <?xml version="1.0" encoding="utf-8"?>
- <ContentView xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
- xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
- x:Class="InABox.Mobile.MobileMenuButtonMenu" Padding="5">
- <ContentView.BindingContext>
- <mobile:MobileMenuButtonMenuViewModel x:Name="_viewModel"/>
- </ContentView.BindingContext>
- <ContentView.Content>
- <StackLayout
- x:Name="_menu"
- Orientation="Vertical"
- VerticalOptions="StartAndExpand"
- HorizontalOptions="StartAndExpand"
- Margin="0,5,0,0"
- Spacing="10"
- BindableLayout.ItemsSource = "{Binding Items}"
- BindableLayout.EmptyView="Nothing!">
- <BindableLayout.ItemTemplate>
- <DataTemplate x:DataType="mobile:MobileMenuButtonMenuItem">
- <Label Text="{Binding Text}"
- VerticalOptions="CenterAndExpand"
- HorizontalOptions="FillAndExpand"
- HorizontalTextAlignment="Start"
- VerticalTextAlignment="Center"
- FontSize="Micro"
- Padding="2,5,2,2">
- <Label.GestureRecognizers>
- <TapGestureRecognizer Tapped="TapGestureRecognizer_OnTapped" />
- </Label.GestureRecognizers>
- </Label>
- </DataTemplate>
- </BindableLayout.ItemTemplate>
-
- </StackLayout>
- </ContentView.Content>
- </ContentView>
|