wabbajack/Wabbajack.App/Controls/GameSelectorItemView.axaml.cs

24 lines
597 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using System.Reactive.Disposables;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Markup.Xaml;
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);
});
}
}
}