I use a dozen of ListView (SfListView from SyncFusion) in my application.
Here is the kind of template I use :
My ListViewItem contains a button that set the ListViewItem with an IsSelected property.
When a cell is selected, I display a list of command to navigate to other pages.
I'm looking for a way to extend the ListView to expose 2 Bindable Property of type ControlTemplate because all my ListView as a "menu" button on the right and I wanted to factorize some logic used to force the layout update of the selected cell.
I want to have 2 ControlTemplate. 1 for the traditionnal ItemTemplate and 1 for the list of available menu actions.
I've been struggling all day long trying to make it work but it's harder to customize with XForms' XAML than traditionnal XAML.
Did anyone achieve something similar ? Should I extend ViewCell and expose some control template and other bindable properties inside or is it enough to expose them in the ListViewExtended and use those BP inside a control template with TemplateBinding ?
Any help/thought on this will be very appreciated.
The only workaround I found to work is to dupplicate all the code or having a BaseListPageViewModel but that's far from the best solution IMHO. (and I can't factorize the XAML, only the code exectuted by the ListView)
Have a good day and thanks for your time if you read my problem so far