Skip to content

Commit

Permalink
fix(TreeView): prevent throwing exception
Browse files Browse the repository at this point in the history
  • Loading branch information
TopProgrammer77 authored and ahmed605 committed Sep 13, 2023
1 parent a193b96 commit 390f0dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ protected override void OnDragOver(Windows.UI.Xaml.DragEventArgs args)
if (!args.Handled)
{
args.AcceptedOperation = DataPackageOperation.None;
IInsertionPanel insertionPanel = (IInsertionPanel)ItemsPanelRoot;
IInsertionPanel insertionPanel = ItemsPanelRoot as IInsertionPanel;

// reorder is only supported with panels that implement IInsertionPanel
if (insertionPanel != null && m_draggedTreeViewNode != null && CanReorderItems)
Expand Down

0 comments on commit 390f0dd

Please sign in to comment.