DragAndDrop core

This commit is contained in:
FrigaT
2026-01-18 16:33:35 +03:00
parent 9ea82af329
commit 79bdd8bc62
229 changed files with 21214 additions and 2494 deletions

View File

@@ -0,0 +1,28 @@
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;
}