Files
Lattice/Lattice.IDE/Layout/DemoContent.cs
2026-01-18 16:33:35 +03:00

29 lines
723 B
C#

using Lattice.Core.Docking.Abstractions;
namespace Lattice.IDE;
/// <summary>
/// Реализация контента для демонстрации, принимающая любой UI-объект.
/// </summary>
public class DemoContent : IDockContent
{
public string Id { get; }
public string Title { get; set; }
/// <summary>
/// Сюда мы передаем наш UserControl (SolutionExplorerView и т.д.)
/// </summary>
public object View { get; set; }
public bool CanClose { get; set; } = true;
public DemoContent(string id, string title, object view)
{
Id = id;
Title = title;
View = view;
}
public bool OnClosing() => true;
}