using System.Reactive.Disposables; using Avalonia.ReactiveUI; using ReactiveUI; namespace Wabbajack.App.Controls; public partial class GameSelectorItemView : ReactiveUserControl { public GameSelectorItemView() { InitializeComponent(); this.WhenActivated(disposables => { this.OneWayBind(ViewModel, vm => vm.Name, view => view.GameName.Text) .DisposeWith(disposables); }); } }