Пример #1
0
        private bool CanDockIn(object dragged, ISplitItem target, DockPosition position)
        {
            // If there is a pane that cannot be dropped in any of the targeted panes.
            var splitContainer = dragged as RadSplitContainer;

            return(!splitContainer.EnumeratePanes().Any((RadPane p) => target.EnumeratePanes().Any((RadPane p1) => !CanDockIn(p, p1, position))));
        }
		private bool CanDock(ISplitItem dragged, DockPosition position)
		{
			return !dragged.EnumeratePanes().Any((RadPane p) => !CanDock(p, position));
		}
		private bool CanDockIn(ISplitItem dragged, ISplitItem target, DockPosition position)
		{
			// If there is a pane that cannot be dropped in any of the targeted panes.
			return !dragged.EnumeratePanes().Any((RadPane p) => target.EnumeratePanes().Any((RadPane p1) => !CanDockIn(p, p1, position)));
		}
Пример #4
0
 private bool CanDock(ISplitItem dragged, DockPosition position)
 {
     return(!dragged.EnumeratePanes().Any((RadPane p) => !CanDock(p, position)));
 }
Пример #5
0
 private bool CanDockIn(ISplitItem dragged, ISplitItem target, DockPosition position)
 {
     return(!dragged.EnumeratePanes().Any((RadPane p) => target.EnumeratePanes().Any((RadPane p1) => !CanDockIn(p, p1, position))));
 }
Пример #6
0
 private bool CanDockIn(ISplitItem dragged, ISplitItem target, DockPosition position)
 {
     return !dragged.EnumeratePanes().Any((RadPane p) => target.EnumeratePanes().Any((RadPane p1) => !CanDockIn(p, p1, position)));
 }
Пример #7
0
 private bool CanDockIn(object dragged, ISplitItem target, DockPosition position)
 {
     // If there is a pane that cannot be dropped in any of the targeted panes.
     var splitContainer = dragged as RadSplitContainer;
     return !splitContainer.EnumeratePanes().Any((RadPane p) => target.EnumeratePanes().Any((RadPane p1) => !CanDockIn(p, p1, position)));
 }