Listview Grouping - access Group property from group item

MiksierMiksier PLMember ✭✭
edited January 17 in Xamarin.Forms

Hello!

I have an ObservableCollection<MyGroup> Groups {get;set;}
public class MyGroup : ObservableCollection<MyItem> { public bool MyProperty{get;set;} }
and I have a ListView with ItemSource={Binding Groups }

Now, the issue here is whether it is possible to access MyProperty from ItemTemplate? I want to show/hide a control depending on the property residing in the Groupcollection. Ideally I'd like to have something like

<ListView.Itemtemplate> <DataTemplate> <Control IsVisible={Binding Group.MyProperty}/> (...)

Has anyone done something like that?

Tagged:

Best Answer

Answers

Sign In or Register to comment.