public ShowCalculatingSize ( |
||
parentScreenRect | Screen rectangle of the parent. | |
finishDelegate | EventHandler | Delegate fired when popup dismissed. |
return | void |
public void ShowCalculatingSize(Rectangle parentScreenRect,
EventHandler finishDelegate)
{
Size popupSize;
// Find the size the quick access toolbar requests to be
using (ViewLayoutContext context = new ViewLayoutContext(this, Renderer))
popupSize = _viewQAT.GetPreferredSize(context);
DismissedDelegate = finishDelegate;
// Request we be shown below the parent screen rect
Show(parentScreenRect, popupSize);
}