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))); }
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) { return(!dragged.EnumeratePanes().Any((RadPane p) => target.EnumeratePanes().Any((RadPane p1) => !CanDockIn(p, p1, position)))); }
private bool CanDockIn(ISplitItem dragged, ISplitItem target, DockPosition position) { return !dragged.EnumeratePanes().Any((RadPane p) => target.EnumeratePanes().Any((RadPane p1) => !CanDockIn(p, p1, position))); }
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))); }