public static double MaxHeight(params FrameworkElement[] elements) { double _maxHeight = double.NaN; foreach (FrameworkElement e in elements) { if (DoubleHelper.Bigger(e.MaxHeight, _maxHeight)) { _maxHeight = e.MaxHeight; } } return(_maxHeight); }
public static double MaxWidth(params FrameworkElement[] elements) { double _maxWidth = double.NaN; foreach (FrameworkElement e in elements) { if (DoubleHelper.Bigger(e.MaxWidth, _maxWidth)) { _maxWidth = e.MaxWidth; } } return(_maxWidth); }
public static double MaxWidthNotInfinity(params FrameworkElement[] elements) { double _maxWidth = double.NaN; foreach (FrameworkElement e in elements) { if (!double.IsPositiveInfinity(e.MaxWidth) && DoubleHelper.Bigger(e.MaxWidth, _maxWidth)) { _maxWidth = e.MaxWidth; } } return(_maxWidth); }
public static double MaxHeightNotInfinity(params FrameworkElement[] elements) { double _maxHeight = double.NaN; foreach (FrameworkElement e in elements) { if (!double.IsPositiveInfinity(e.MaxHeight) && DoubleHelper.Bigger(e.MaxHeight, _maxHeight)) { _maxHeight = e.MaxHeight; } } return(_maxHeight); }