public override IDropAction CreateInstance(DragDropContext context)
        {
            this.CheckNullArgument((object)context, "context");
            DataSchemaNodePathCollection result = (DataSchemaNodePathCollection)null;

            if (DragSourceHelper.FirstDataOfType <DataSchemaNodePathCollection>(context.Data, ref result))
            {
                BindingSceneInsertionPoint insertionPoint = context.Target.GetInsertionPoint((object)result, context) as BindingSceneInsertionPoint;
                if (insertionPoint != null && insertionPoint.SceneNode != null)
                {
                    return((IDropAction) new DropBindingAction(result, insertionPoint));
                }
            }
            return((IDropAction)null);
        }
Beispiel #2
0
 public DropBindingAction(DataSchemaNodePathCollection dataSourceInfo, BindingSceneInsertionPoint insertionPoint)
     : base(dataSourceInfo, (ISceneInsertionPoint)insertionPoint)
 {
 }