private bool IsWidthSet(out int width) { UIElement.Pair requestedSize = this._requestedSize; if (requestedSize != null && (requestedSize._status & 1) != 0) { width = requestedSize._first; return(true); } width = 0; return(false); }
private bool IsHeightSet(out int height) { UIElement.Pair requestedSize = this._requestedSize; if (requestedSize != null && (requestedSize._status & 2) != 0) { height = requestedSize._second; return(true); } height = 0; return(false); }