I have listview with a swipetemplate as below
<ResourceDictionary
<DataTemplate x:Key="SwipeTemplate">
<ffimageloadingsvg:SvgCachedImage Grid.Row="0"
Style="{StaticResource ImgSwapStyle}"
Source="delete.svg" >
<ffimageloadingsvg:SvgCachedImage.GestureRecognizers>
<TapGestureRecognizer
Command="{Binding Path=BindingContext.OnDeleteClick, Source={x:Reference Name=list}}"
CommandParameter="{Binding .}"
/>
</ffimageloadingsvg:SvgCachedImage.GestureRecognizers>
</ffimageloadingsvg:SvgCachedImage>
</DataTemplate>
</ResourceDictionary>
<sfListView:SfListView x:Name="list" BackgroundColor="White" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"
...
SelectedItem="{Binding SelectedItem, Mode=TwoWay}"
LeftSwipeTemplate="{StaticResource SwipeTemplate}">
Basically if SwipeTemplate is defined in the contentpage's resourcedictionary it works but i want to use it shared for all my pages where i have sflistview, therefore i need to have it in a merged dictionary. So once i defined resourcedictionary globally, it wont work. because of Source={x:Reference Name=list}.
Although all my listview's are called list, it doesnt work. So how I reference and bind it in a global resourcedictionary?