DiagramPaletteControl

StockSharp.Xaml.Diagram.Avalonia.Controls

Avalonia diagram palette/toolbox control. Provides a categorized list of diagram elements that can be dragged onto the canvas.

Inherits: UserControl

Constructors

DiagramPaletteControl
public DiagramPaletteControl()
diagramPaletteControl = DiagramPaletteControl()

Initializes a new instance of the DiagramPaletteControl.

Properties

IsSearchMode
public bool IsSearchMode { get; private set; }
value = diagramPaletteControl.IsSearchMode
diagramPaletteControl.IsSearchMode = value

Whether the palette is in search mode.

Methods

AddCategory
public void AddCategory(string categoryName, IEnumerable<PaletteItem> items)
diagramPaletteControl.AddCategory(categoryName, items)

Add a category with items to the palette.

Clear
public void Clear()
diagramPaletteControl.Clear()

Clear all categories and items.

Events

DragStarted
public event EventHandler<PaletteDragEventArgs> DragStarted
diagramPaletteControl.DragStarted += handler

Occurs when a drag operation starts from the palette.

ItemActivated
public event EventHandler<PaletteItem> ItemActivated
diagramPaletteControl.ItemActivated += handler

Occurs when an item is activated (double-clicked or Enter pressed).

Fields

IsSearchModeProperty
public static readonly StyledProperty<bool> IsSearchModeProperty
value = DiagramPaletteControl.IsSearchModeProperty

Identifies the IsSearchMode dependency property.