Exemplo n.º 1
0
 /// <summary>
 /// Discover the preferred size of the element.
 /// </summary>
 /// <param name="context">Layout context.</param>
 public override Size GetPreferredSize(ViewLayoutContext context)
 {
     Debug.Assert(context != null);
     return(_page.GetPreferredSize(context.DisplayRectangle.Size));
 }