/// <summary> /// Returns a flag indicating whether the sizing element is at the bottom of the window. /// If true, the size of the popup should increase. If false, the size should decrease. /// </summary> /// <returns></returns> private bool IsSizerAtBottom() { if (this.UseNewLayoutSystem) { return(DockLayoutPanel.GetDock(this.Parent) == Dock.Bottom); } else { return(this.Parent.Alignment == ContentAlignment.BottomCenter); } }
private bool IsSizerAtBottom() { return(DockLayoutPanel.GetDock(this.Parent) == Dock.Bottom); }