예제 #1
0
 private int GetMaxHeight()
 {
     if (maxHeight.HasValue)
     {
         return(maxHeight.Value);
     }
     if (Parent == null)
     {
         return(RenderHeight - Margin.VerticalSum());
     }
     return(Parent.MaxHeight - Margin.VerticalSum());
 }