using Lattice.Core.Docking.Abstractions;
namespace Lattice.IDE;
///
/// Реализация контента для демонстрации, принимающая любой UI-объект.
///
public class DemoContent : IDockContent
{
public string Id { get; }
public string Title { get; set; }
///
/// Сюда мы передаем наш UserControl (SolutionExplorerView и т.д.)
///
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;
}