using System.Reactive.Disposables; using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; using ReactiveUI; using Wabbajack.App.Views; namespace Wabbajack.App.Screens { public partial class LauncherView : ScreenBase { public LauncherView() { InitializeComponent(); this.WhenActivated(disposables => { this.OneWayBind(ViewModel, vm => vm.Image, view => view.ModListImage.Source) .DisposeWith(disposables); this.BindCommand(ViewModel, vm => vm.PlayButton, view => view.PlayGame.Button) .DisposeWith(disposables); }); } } }