wabbajack/Wabbajack.App/Screens/LauncherView.axaml.cs

28 lines
887 B
C#
Raw Normal View History

2021-09-30 04:03:43 +00:00
using System.Reactive.Disposables;
using ReactiveUI;
using Wabbajack.App.Views;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.App.Screens;
public partial class LauncherView : ScreenBase<LauncherViewModel>
2021-09-30 04:03:43 +00:00
{
2021-10-23 16:51:17 +00:00
public LauncherView()
2021-09-30 04:03:43 +00:00
{
2021-10-23 16:51:17 +00:00
InitializeComponent();
this.WhenActivated(disposables =>
2021-09-30 04:03:43 +00:00
{
2021-10-23 16:51:17 +00:00
this.OneWayBind(ViewModel, vm => vm.Image, view => view.ModListImage.Source)
.DisposeWith(disposables);
2021-09-30 22:18:58 +00:00
2021-10-23 16:51:17 +00:00
this.OneWayBind(ViewModel, vm => vm.Title, view => view.ModList.Text)
.DisposeWith(disposables);
2021-09-30 22:18:58 +00:00
2021-10-23 16:51:17 +00:00
this.OneWayBind(ViewModel, vm => vm.InstallFolder, view => view.InstallPath.Text,
v => v.ToString())
.DisposeWith(disposables);
2021-09-30 04:03:43 +00:00
2021-10-23 16:51:17 +00:00
this.BindCommand(ViewModel, vm => vm.PlayButton, view => view.PlayGame.Button)
.DisposeWith(disposables);
});
2021-09-30 04:03:43 +00:00
}
}