Skip to content

Commit

Permalink
Drag Drop Is working now
Browse files Browse the repository at this point in the history
  • Loading branch information
amanpras committed Aug 28, 2024
1 parent bdb4d30 commit 86b7cc5
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Ginger/Ginger/Actions/ActionsListViewPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ private void SetListView()
mActionsListHelper.ActionListItemEvent += MActionListItemInfo_ActionListItemEvent;

mActionsListView.SetDefaultListDataTemplate(mActionsListHelper);

mActionsListView.ListSelectionMode = SelectionMode.Extended;

mActionsListView.PreviewDragItem += listActions_PreviewDragItem;
Expand All @@ -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
{
Expand All @@ -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
Expand Down

0 comments on commit 86b7cc5

Please sign in to comment.