This repository has been archived on 2026-03-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Eco/VideoBrowser.Test/TestHelpers/WindowFactory.cs
2023-07-24 12:00:34 +02:00

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
}
}