File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
ListViewSample/ListViewPrism/ListViewPrism/Helper Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,17 @@ namespace Grouping
88{
99 class Behavior : Behavior < SfListView >
1010 {
11- ListViewGroupingViewModel viewModel ;
1211 public SfListView listview { get ; private set ; }
1312 protected override void OnAttachedTo ( SfListView bindable )
1413 {
1514 base . OnAttachedTo ( bindable ) ;
1615 listview = bindable as SfListView ;
17- viewModel = new ListViewGroupingViewModel ( ) ;
18- listview . BindingContext = viewModel ;
1916 listview . ItemDragging += Listview_ItemDragging ;
2017 }
2118
2219 private void Listview_ItemDragging ( object sender , ItemDraggingEventArgs e )
2320 {
21+ var viewModel = ( sender as SfListView ) . BindingContext as ListViewGroupingViewModel ;
2422 if ( e . Action == Syncfusion . ListView . XForms . DragAction . Drop )
2523 {
2624 viewModel . isDragEndRaised = true ;
You can’t perform that action at this time.
0 commit comments