using System.Reactive.Disposables; using Avalonia.Controls; namespace Avalonia.Xaml.Interactions.Custom; /// /// /// public class TextBoxSelectAllTextBehavior : AttachedToVisualTreeBehavior { /// /// /// /// protected override void OnAttachedToVisualTree(CompositeDisposable disposable) { AssociatedObject?.SelectAll(); } }