private ViewManager GetViewManager() { if (_rootControl != null) return _rootControl.GetViewManager(); else if (_rootPopup != null) return _rootPopup.GetViewManager(); else { Debug.Assert(false); return null; } }