コード例 #1
0
 protected override bool OnQueryCanDrop(TimelineDragDescriptor descriptor)
 {
     this.CheckNullArgument((object)descriptor, "descriptor");
     if (PlatformTypes.FrameworkTemplate.IsAssignableFrom((ITypeId)this.TargetNode.Type) || PlatformTypes.Style.IsAssignableFrom((ITypeId)this.TargetNode.Type))
     {
         return(false);
     }
     descriptor.DisableInBetween();
     return(base.OnQueryCanDrop(descriptor));
 }
コード例 #2
0
 protected override bool OnQueryCanDrop(TimelineDragDescriptor descriptor)
 {
     descriptor.DisableInBetween();
     if (!this.InsertionPoint.CanInsert((ITypeId)this.SourceData.Type))
     {
         return(false);
     }
     if (descriptor.AllowCopy)
     {
         descriptor.SetCopyInto(this.InsertionPoint);
     }
     else
     {
         descriptor.SetMoveInto(this.InsertionPoint);
     }
     descriptor.TryReplace((object)this.SourceData, SmartInsertionPoint.From(this.InsertionPoint), this.DestinationCollection);
     return(true);
 }
コード例 #3
0
        protected override bool OnQueryCanDrop(TimelineDragDescriptor descriptor)
        {
            descriptor.DisableInBetween();
            if (!this.InsertionPoint.CanInsert((ITypeId)this.SourceData.Type))
            {
                return(false);
            }
            if (descriptor.AllowCopy)
            {
                descriptor.SetCopyInto(this.InsertionPoint);
            }
            else
            {
                descriptor.SetMoveInto(this.InsertionPoint);
            }
            DocumentNodePath valueAsDocumentNode = this.TargetNode.GetLocalValueAsDocumentNode(Base2DElement.EffectProperty);

            if (valueAsDocumentNode != null && valueAsDocumentNode.Node == this.SourceData.DocumentNode)
            {
                return(false);
            }
            descriptor.TryReplace((object)this.SourceData, SmartInsertionPoint.From(this.InsertionPoint), this.DestinationCollection);
            return(true);
        }
コード例 #4
0
 protected override bool OnQueryCanDrop(TimelineDragDescriptor descriptor)
 {
     descriptor.DisableInBetween();
     return(base.OnQueryCanDrop(descriptor));
 }