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

20 lines
581 B
C#
Raw Normal View History

2021-10-19 23:19:06 +00:00
using System.Reactive.Disposables;
using ReactiveUI;
using Wabbajack.App.Views;
namespace Wabbajack.App.Screens;
public partial class ErrorPageView : ScreenBase<ErrorPageViewModel>
{
2021-11-04 13:01:48 +00:00
public ErrorPageView() : base("Error")
2021-10-19 23:19:06 +00:00
{
InitializeComponent();
this.WhenActivated(disposables =>
{
this.Bind(ViewModel, vm => vm.Prefix, view => view.Prefix.Text)
.DisposeWith(disposables);
this.Bind(ViewModel, vm => vm.ShortMessage, view => view.Message.Text)
.DisposeWith(disposables);
});
}
}