ComponentPalette class
Beep.Skia (core) — class
A component palette that displays available Skia components in an organized list with drag and drop functionality for design-time component creation.
Members
| Member | Kind | Description |
|---|---|---|
event EventHandler<ComponentItem> ComponentSelected | Event | Occurs when a component is selected in the palette. |
event EventHandler<ComponentDragEventArgs> ComponentDragStarted | Event | Occurs when a component starts being dragged from the palette. |
event EventHandler<ComponentDragEventArgs> ComponentDragging | Event | Occurs when a component is being dragged. |
event EventHandler<ComponentDragEventArgs> ComponentDragEnded | Event | Occurs when a component drag operation ends. |
ObservableCollection<ComponentCategory> Categories | Property | Gets or sets the categories of components to display. |
ComponentCategory SelectedCategory | Property | Gets or sets the currently selected category. |
float ItemHeight | Property | Gets or sets the height of each component item. |
float CategoryHeaderHeight | Property | Gets or sets the height of category headers. |
ComponentItem DraggedComponent | Property | Gets the currently dragged component. |
bool IsDragging | Property | Gets whether a component is currently being dragged. |
ComponentPalette() | Method | Initializes a new instance of the ComponentPalette class. |
void LoadComponentsFromRegistry() | Method | Loads components from the SkiaComponentRegistry and organizes them into categories. |