stacklayout

Kivy, StackLayout, object order

老子叫甜甜 提交于 2021-01-29 05:01:18
问题 I have a screen with a StackLayout. The first row of the stack includes a textinput and a "+" button which is meant to add another identical row below the actual one in a loop (i.e. another textinput with another "add" button). Then there is a "Save" button, which is supposed to be always at the end of the stack. The dictionary is supposed to later grab the input from the text field, when pressing the save button, but this should not be relevant to my problem. There are two problems with my

How to bind index of item in nested BindableLayout.ItemsSource to CommandParameter - Xamarin

和自甴很熟 提交于 2021-01-07 06:58:08
问题 I'm trying to figure out how you can get the index from a list inside XAML. Context A product has multiple specification categories/groups which contain the specification details. Product & Ingrediënten are the specification groups. Land van afkomst : Nederland are the specs details In the XAML code, I'm using a nested list. The application needs to pass the Index so the users can delete and add specifications correctly. The index at Binding Source="0" /> & CommandParameter="0" needs to be

Masonry list style in Xamarin

僤鯓⒐⒋嵵緔 提交于 2020-06-28 09:54:13
问题 I need to list the announcements on a content page just like masonry style (https://halcyon-theme.tumblr.com/) but I couldn't be successful on it. My problem is that the Scrollview doesn't cover whole the page when I use the Parent Stacklayout's Vertical alignment option set as FillAndExpand. But if I set the Scrollview and Parent StackLayout as static height value, It's okay but due to per item's height will change, I can't use it that's the way as you guess. <StackLayout x:Name="stckParent"

Xamarin forms C# StackLayout

穿精又带淫゛_ 提交于 2019-12-24 22:38:18
问题 Please see below code. If I click on 'Beer' or 'Spirit' private void MyButton_Clicked(object sender, EventArgs e) will be called. However nothing happens if I click 'Wine' Or 'Cider' does anyone know why this is? <StackLayout VerticalOptions="StartAndExpand" HorizontalOptions="StartAndExpand"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="100"/> <RowDefinition Height="100"/> <RowDefinition Height="100"/> </Grid.RowDefinitions> <StackLayout Grid.Row="0" VerticalOptions="StartAndExpand"