DiagramPaletteControl
StockSharp.Xaml.Diagram.Avalonia.Controls
自动显示相册/ 工具箱控制。 提供可拖入画布的图元素分类列表 。
继承自: UserControl
构造函数
DiagramPaletteControl
public DiagramPaletteControl()
diagramPaletteControl = DiagramPaletteControl()
初始化了 & ##DiagramPaletteControl+#的新实例.
属性
IsSearchMode
public bool IsSearchMode { get; private set; }
value = diagramPaletteControl.IsSearchMode
diagramPaletteControl.IsSearchMode = value
调色板是否处于搜索模式 。
方法
AddCategory
public void AddCategory(string categoryName, IEnumerable<PaletteItem> items)
diagramPaletteControl.AddCategory(categoryName, items)
添加一个带有项目的项目类别到调色板中。
事件
DragStarted
public event EventHandler<PaletteDragEventArgs> DragStarted
diagramPaletteControl.DragStarted += handler
拖曳操作从调色板开始时的外观 。
ItemActivated
public event EventHandler<PaletteItem> ItemActivated
diagramPaletteControl.ItemActivated += handler
启动项目时的操作(双击或按下输入) 。
字段
IsSearchModeProperty
public static readonly StyledProperty<bool> IsSearchModeProperty
value = DiagramPaletteControl.IsSearchModeProperty
确定IsSearchMode的受抚养财产。