コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }