using System.Reactive.Disposables; namespace Avalonia.Xaml.Interactions.Custom; /// /// /// public class FocusOnAttachedBehavior : FocusBehaviorBase { /// /// /// /// protected override void OnAttachedToVisualTree(CompositeDisposable disposables) { Focus(); } }