mirror of
https://github.com/WowUp/WowUp.git
synced 2026-04-23 15:27:03 -04:00
Add some window position saving code. Prep for splitting code to lib. Add TukUI stuff to get addons.
20 lines
540 B
C#
20 lines
540 B
C#
using System.Windows;
|
|
using System.Windows.Interop;
|
|
using WowUp.WPF.Utilities;
|
|
|
|
namespace WowUp.WPF.Extensions
|
|
{
|
|
public static class WindowExtensions
|
|
{
|
|
public static void SetPlacement(this Window window, string placementXml)
|
|
{
|
|
WindowUtilities.SetPlacement(new WindowInteropHelper(window).Handle, placementXml);
|
|
}
|
|
|
|
public static string GetPlacement(this Window window)
|
|
{
|
|
return WindowUtilities.GetPlacement(new WindowInteropHelper(window).Handle);
|
|
}
|
|
}
|
|
}
|