question

$$ANON_USER$$ avatar image
0 Votes"
$$ANON_USER$$ asked JarvanZhang-MSFT commented

How to assign BindableLayout.ItemsSource to StackLayout

Hi

How to assign BindableLayout.ItemsSource to StackLayout through backend when click any button event i want dynamically bind through list

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

anonymous user To populate a bindable layout with data in c#, you could use the BindableLayout.SetItemsSource method. Check the tutorial: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/layouts/bindable-layouts#populate-a-bindable-layout-with-data

1 Vote 1 ·

1 Answer

$$ANON_USER$$ avatar image
1 Vote"
$$ANON_USER$$ answered

i got the solution

BindableLayout.SetItemSource(stackLayout,itemList);

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.