@ -11,7 +11,7 @@ namespace Avalonia.Input
private Interactive _l astTarget = null ;
private Interactive GetTarget ( IInputElemen t root , Point local )
private Interactive GetTarget ( IInputRoo t root , Point local )
{
var target = root . InputHitTest ( local ) ? . GetSelfAndVisualAncestors ( ) ? . OfType < Interactive > ( ) ? . FirstOrDefault ( ) ;
if ( target ! = null & & DragDrop . GetAllowDrop ( target ) )
@ -19,7 +19,7 @@ namespace Avalonia.Input
return null ;
}
private DragDropEffects RaiseDragEvent ( Interactive target , IInputElemen t inputRoot , Point point , RoutedEvent < DragEventArgs > routedEvent , DragDropEffects operation , IDataObject data , InputModifiers modifiers )
private DragDropEffects RaiseDragEvent ( Interactive target , IInputRoo t inputRoot , Point point , RoutedEvent < DragEventArgs > routedEvent , DragDropEffects operation , IDataObject data , InputModifiers modifiers )
{
if ( target = = null )
return DragDropEffects . None ;
@ -38,13 +38,13 @@ namespace Avalonia.Input
return args . DragEffects ;
}
private DragDropEffects DragEnter ( IInputElemen t inputRoot , Point point , IDataObject data , DragDropEffects effects , InputModifiers modifiers )
private DragDropEffects DragEnter ( IInputRoo t inputRoot , Point point , IDataObject data , DragDropEffects effects , InputModifiers modifiers )
{
_l astTarget = GetTarget ( inputRoot , point ) ;
return RaiseDragEvent ( _l astTarget , inputRoot , point , DragDrop . DragEnterEvent , effects , data , modifiers ) ;
}
private DragDropEffects DragOver ( IInputElemen t inputRoot , Point point , IDataObject data , DragDropEffects effects , InputModifiers modifiers )
private DragDropEffects DragOver ( IInputRoo t inputRoot , Point point , IDataObject data , DragDropEffects effects , InputModifiers modifiers )
{
var target = GetTarget ( inputRoot , point ) ;
@ -77,7 +77,7 @@ namespace Avalonia.Input
}
}
private DragDropEffects Drop ( IInputElemen t inputRoot , Point point , IDataObject data , DragDropEffects effects , InputModifiers modifiers )
private DragDropEffects Drop ( IInputRoo t inputRoot , Point point , IDataObject data , DragDropEffects effects , InputModifiers modifiers )
{
try
{
@ -100,16 +100,16 @@ namespace Avalonia.Input
switch ( e . Type )
{
case RawDragEventType . DragEnter :
e . Effects = DragEnter ( e . Input Root, e . Location , e . Data , e . Effects , e . Modifiers ) ;
e . Effects = DragEnter ( e . Root , e . Location , e . Data , e . Effects , e . Modifiers ) ;
break ;
case RawDragEventType . DragOver :
e . Effects = DragOver ( e . Input Root, e . Location , e . Data , e . Effects , e . Modifiers ) ;
e . Effects = DragOver ( e . Root , e . Location , e . Data , e . Effects , e . Modifiers ) ;
break ;
case RawDragEventType . DragLeave :
DragLeave ( e . Input Root) ;
DragLeave ( e . Root ) ;
break ;
case RawDragEventType . Drop :
e . Effects = Drop ( e . Input Root, e . Location , e . Data , e . Effects , e . Modifiers ) ;
e . Effects = Drop ( e . Root , e . Location , e . Data , e . Effects , e . Modifiers ) ;
break ;
}
}