Files
Lattice/Lattice.Core.Docking/Models/DockWindow.cs
2026-01-18 16:33:35 +03:00

24 lines
941 B
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Lattice.Core.Docking.Abstractions;
namespace Lattice.Core.Docking.Models;
/// <summary>
/// Описывает состояние плавающего окна в системе Lattice.
/// </summary>
public class DockWindow
{
/// <summary> Уникальный ID окна для сохранения его позиции в конфиге. </summary>
public string Id { get; } = Guid.NewGuid().ToString();
/// <summary> Корневой элемент макета внутри данного окна. </summary>
public IDockElement? Root { get; set; }
public double X { get; set; }
public double Y { get; set; }
public double Width { get; set; } = 800;
public double Height { get; set; } = 600;
/// <summary> Заголовок окна (обычно берется из активного контента). </summary>
public string Title { get; set; } = "Lattice Tool Window";
}