2021-09-27 12:42:46 +00:00
|
|
|
using System.Reactive.Disposables;
|
|
|
|
using Avalonia.ReactiveUI;
|
|
|
|
using ReactiveUI;
|
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
namespace Wabbajack.App.Controls;
|
|
|
|
|
|
|
|
public partial class GameSelectorItemView : ReactiveUserControl<GameSelectorItemViewModel>
|
2021-09-27 12:42:46 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
public GameSelectorItemView()
|
2021-09-27 12:42:46 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
InitializeComponent();
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
this.WhenActivated(disposables =>
|
|
|
|
{
|
|
|
|
this.OneWayBind(ViewModel, vm => vm.Name, view => view.GameName.Text)
|
|
|
|
.DisposeWith(disposables);
|
|
|
|
});
|
2021-09-27 12:42:46 +00:00
|
|
|
}
|
|
|
|
}
|