I'm really new to Xamarin and Xamarin forms and I need some help.
I have a StackLayout to which I want to add items dynamically from my ViewModel. Problem is I can't seem to bind the content of the StackLayout to my ViewModel's StackLayout.
this is my xaml code in my view
<StackLayout/>
I want something like
<StackLayout Content="{Binding MainStackLayout}"/>
I have a StackLayout already setup in my ViewModel like this
public StackLayout MainStackLayout;
You have to write a UI component.
want to have bindable itemsource for your stacklayout with different sizes i made custom contentview will help you to achieve it :)