using Avalonia.Metadata; namespace Avalonia.Xaml.Interactivity; /// /// A base class for behaviors, implementing the basic plumbing of . /// public abstract class StyledElementTrigger : StyledElementBehavior, ITrigger { /// /// Identifies the avalonia property. /// public static readonly DirectProperty ActionsProperty = AvaloniaProperty.RegisterDirect(nameof(Actions), t => t.Actions); private ActionCollection? _actions; /// /// Gets the collection of actions associated with the behavior. This is a avalonia property. /// [Content] public ActionCollection Actions => _actions ??= []; }