DragAndDrop core
This commit is contained in:
28
Lattice.IDE/Layout/DemoContent.cs
Normal file
28
Lattice.IDE/Layout/DemoContent.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user