namespace VideoBrowserTestApp.Helpers { using MahApps.Metro.Controls; using System.Windows; /// /// Defines the . /// internal static class WindowFactory { #region Methods /// /// The Create. /// /// The view. /// The ownerWindow. /// The . internal static MetroWindow Create(FrameworkElement view, Window ownerWindow) { var window = new MetroWindow { Content = view, MinWidth = 600, MinHeight = 400, SizeToContent = SizeToContent.WidthAndHeight, Owner = ownerWindow }; return window; } /// /// The CreateAndShow. /// /// The view. /// The ownerWindow. internal static void CreateAndShow(FrameworkElement view, Window ownerWindow) { var window = new Window { Content = view, MinWidth = 600, MinHeight = 400, SizeToContent = SizeToContent.WidthAndHeight, Owner = ownerWindow }; window.Show(); } #endregion Methods } }