24 lines
674 B
C#
24 lines
674 B
C#
namespace VideoBrowser.Test.TestHelpers
|
|
{
|
|
using System.Windows;
|
|
|
|
/// <summary>
|
|
/// Defines the <see cref="WindowFactory" />.
|
|
/// </summary>
|
|
internal static class WindowFactory
|
|
{
|
|
#region Methods
|
|
|
|
/// <summary>
|
|
/// The CreateAndShow.
|
|
/// </summary>
|
|
/// <param name="view">The view<see cref="FrameworkElement"/>.</param>
|
|
internal static void CreateAndShow(FrameworkElement view)
|
|
{
|
|
var window = new Window { Content = view, MinWidth = 600, MinHeight = 400, SizeToContent = SizeToContent.WidthAndHeight };
|
|
window.ShowDialog();
|
|
}
|
|
|
|
#endregion Methods
|
|
}
|
|
} |