public static void ShowWindow(Control control, PopupWindowBackgroundType backgroundType) { if (mWindow == null) { mWindow = new PopupWindow { content = control, BackgroundType = backgroundType }; mWindow.Show(); } }