From 86b7cc5b4a9a9fb5020965f43819df02cb060b51 Mon Sep 17 00:00:00 2001 From: amanpras Date: Wed, 28 Aug 2024 16:06:10 +0530 Subject: [PATCH] Drag Drop Is working now --- Ginger/Ginger/Actions/ActionsListViewPage.xaml.cs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Ginger/Ginger/Actions/ActionsListViewPage.xaml.cs b/Ginger/Ginger/Actions/ActionsListViewPage.xaml.cs index 486834437e..97be822ccf 100644 --- a/Ginger/Ginger/Actions/ActionsListViewPage.xaml.cs +++ b/Ginger/Ginger/Actions/ActionsListViewPage.xaml.cs @@ -194,7 +194,7 @@ private void SetListView() mActionsListHelper.ActionListItemEvent += MActionListItemInfo_ActionListItemEvent; mActionsListView.SetDefaultListDataTemplate(mActionsListHelper); - + mActionsListView.ListSelectionMode = SelectionMode.Extended; mActionsListView.PreviewDragItem += listActions_PreviewDragItem; @@ -204,10 +204,6 @@ private void SetListView() // Enable Virtualization for Actions ListView to improve the loading time/performance mActionsListView.List.SetValue(ScrollViewer.CanContentScrollProperty, true); - if (mPageViewMode == Ginger.General.eRIPageViewMode.View || mPageViewMode == Ginger.General.eRIPageViewMode.ViewAndExecute) - { - mActionsListView.IsDragDropCompatible = false; - } } else { @@ -219,6 +215,15 @@ private void SetListView() } } + if (mPageViewMode == Ginger.General.eRIPageViewMode.View || mPageViewMode == Ginger.General.eRIPageViewMode.ViewAndExecute) + { + mActionsListView.IsDragDropCompatible = false; + } + else + { + mActionsListView.IsDragDropCompatible = true; + } + if (mActivity != null) { //update actions platform