Files
annotations/Azaion.Annotator/Extensions/WindowExtensions.cs
T
Alex Bezdieniezhnykh 52371ace3a add editor, fix some bugs
WIP
2024-09-10 17:10:54 +03:00

15 lines
431 B
C#

using System.Windows;
using Azaion.Annotator.DTO;
namespace Azaion.Annotator.Extensions;
public static class WindowExtensions
{
public static WindowConfig GetConfig(this Window window) =>
new()
{
WindowSize = new Size(window.Width, window.Height),
WindowLocation = new Point(window.Left, window.Top),
FullScreen = window.WindowState == WindowState.Maximized
};
}