wabbajack/Wabbajack.App/Controls/GameSelectorItemView.axaml.cs
2021-10-23 10:51:17 -06:00

19 lines
477 B
C#

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