12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?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.MobileAccordion">
- <ContentView.Content>
- <StackLayout
- x:Name="_stack"
- VerticalOptions="Fill"
- BackgroundColor="Transparent"
- Spacing="5"
- >
- <BindableLayout.ItemTemplate>
- <DataTemplate x:DataType="mobile:MobileAccordionItem">
- <StackLayout
- Orientation="Vertical"
- Spacing="5"
- BackgroundColor="Transparent"
- >
-
- <mobile:MobileButton
- MinimumHeightRequest="50"
- HeightRequest="50"
- Text="{Binding Text}"
- Tag="{Binding .}"
- Clicked="Header_Clicked"
- IsVisible="{Binding ButtonVisible}"/>
-
- <Frame
- CornerRadius="5"
- BorderColor="Gray"
- BackgroundColor="Transparent"
- Padding="0"
- HeightRequest="2000"
- VerticalOptions="Fill"
- HasShadow="False"
- IsVisible="{Binding Visible}"
- IsClippedToBounds="True"
- >
- <ScrollView>
- <ContentView Content="{Binding Content}"/>
- </ScrollView>
- </Frame>
-
- </StackLayout>
- </DataTemplate>
- </BindableLayout.ItemTemplate>
- </StackLayout>
- </ContentView.Content>
- </ContentView>
|