mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:56:31 +00:00
add badge with window switch on the top right
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
using System.Windows;
|
||||
using Azaion.Annotator.DTO;
|
||||
using Azaion.Common.DTO.Config;
|
||||
|
||||
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
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user