using Microsoft.UI.Xaml.Controls; namespace Ghost.Editor.Core.Inspector; interface IComponentEditor { /// /// Called when the component editor is created. /// /// The component data to edit. /// The container to add the editor controls to. public void Create(ComponentObject componentObject, StackPanel container); /// /// Called when the component editor needs to update its UI based on the current state of the component data. /// /// The component data to edit. public void Update(ComponentObject componentObject); /// /// Called when the component editor is destroyed. /// /// The component data to edit. public void Destroy(ComponentObject componentObject); }