public void DismissPopup() { if (_popup != null) { Children.Remove(_popup); _popup = null; } _content.InputTransparent = false; } }