namespace Avalonia.Xaml.Interactivity; /// /// Interface implemented by all custom behaviors. /// public interface IBehavior { /// /// Gets the to which the is attached. /// AvaloniaObject? AssociatedObject { get; } /// /// Attaches to the specified object. /// /// The to which the will be attached. void Attach(AvaloniaObject? associatedObject); /// /// Detaches this instance from its associated object. /// void Detach(); }