Projektdateien hinzufügen.
This commit is contained in:
24
VideoBrowser.Test/TestHelpers/WindowFactory.cs
Normal file
24
VideoBrowser.Test/TestHelpers/WindowFactory.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user