示例#1
0
        void DockItemEndDocking(object sender, DockItemDockingEventArgs e)
        {
            Debug.WriteLine("DockItemEndDocking: {0}", e.Item);
            var dg = e.DockTarget as DocumentGroup;

            if (dg == null)
            {
                e.Cancel = true;
                return;
            }
        }
示例#2
0
        private void DockItemDocking(object sender, DockItemDockingEventArgs e)
        {
            Debug.WriteLine("DockItemDocking: {0}", e.Item);
            Debug.WriteLine("\tDockTarget: {0} / {1}", e.DockTarget, e.DockTarget != null ? e.DockTarget.Name : "");
            Debug.WriteLine("\tDockType: {0}", e.DockType);
            Debug.WriteLine("\tDragPoint: {0}", e.DragPoint);

            var dg = e.DockTarget as DocumentGroup;

            if (dg == null)
            {
                e.Cancel = true;
                return;
            }
        }
示例#3
0
 void DockItemEndDocking(object sender, DockItemDockingEventArgs e)
 {
     Debug.WriteLine("DockItemEndDocking: {0}", e.Item);
     var dg = e.DockTarget as DocumentGroup;
     if (dg == null)
     {
         e.Cancel = true;
         return;
     }
 }
示例#4
0
        private void DockItemDocking(object sender, DockItemDockingEventArgs e)
        {
            Debug.WriteLine("DockItemDocking: {0}", e.Item);
            Debug.WriteLine("\tDockTarget: {0} / {1}", e.DockTarget, e.DockTarget != null ? e.DockTarget.Name : "");
            Debug.WriteLine("\tDockType: {0}", e.DockType);
            Debug.WriteLine("\tDragPoint: {0}", e.DragPoint);

            var dg = e.DockTarget as DocumentGroup;
            if (dg == null)
            {
                e.Cancel = true;
                return;
            }
        }