Skip to content

Commit

Permalink
chore: Adjust test page
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed May 10, 2023
1 parent 4e6cc8f commit 9bdaa6c
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,22 +294,23 @@ private void OnTabDragStarting(object sender, TabViewTabDragStartingEventArgs e)
e.Data.RequestedOperation = DataPackageOperation.Move;
}

private void OnTabStripDragOver(object sender, DragEventArgs e)
private void OnTabStripDragOver(object sender, Windows.UI.Xaml.DragEventArgs e)
{
if (e.DataView.Properties.ContainsKey(DataIdentifier))
{
e.AcceptedOperation = DataPackageOperation.Move;
}
}

private void OnTabStripDrop(object sender, DragEventArgs e)
private void OnTabStripDrop(object sender, Windows.UI.Xaml.DragEventArgs e)
{
// This event is called when we're dragging between different TabViews
// It is responsible for handling the drop of the item into the second TabView

object obj;
object objOriginTabView;
if (e.DataView.Properties.TryGetValue(DataIdentifier, out obj) && e.DataView.Properties.TryGetValue(DataTabView, out objOriginTabView))
object obj = null;
object objOriginTabView = null;
if (e.DataView.Properties.TryGetValue(DataIdentifier, out obj) &&
e.DataView.Properties.TryGetValue(DataTabView, out objOriginTabView))
{
// TODO - BUG: obj should never be null, but occassionally is. Why?
if (obj == null || objOriginTabView == null)
Expand Down

0 comments on commit 9bdaa6c

Please sign in to comment.