mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:06:31 +00:00
52371ace3a
WIP
15 lines
431 B
C#
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
|
|
};
|
|
} |