wabbajack/Wabbajack/Views/Settings/SettingsView.xaml.cs

40 lines
1.2 KiB
C#
Raw Normal View History

2019-12-20 20:51:10 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive.Disposables;
2019-12-20 20:51:10 +00:00
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ReactiveUI;
2019-12-20 20:51:10 +00:00
namespace Wabbajack
{
/// <summary>
/// Interaction logic for SettingsView.xaml
2019-12-20 20:51:10 +00:00
/// </summary>
public partial class SettingsView : ReactiveUserControl<SettingsVM>
2019-12-20 20:51:10 +00:00
{
public SettingsView()
2019-12-20 20:51:10 +00:00
{
InitializeComponent();
this.WhenActivated(disposable =>
{
this.OneWayBind(this.ViewModel, x => x.BackCommand, x => x.BackButton.Command)
.DisposeWith(disposable);
this.OneWayBind(this.ViewModel, x => x.Login, x => x.LoginView.ViewModel)
.DisposeWith(disposable);
this.OneWayBind(this.ViewModel, x => x.Performance, x => x.PerformanceView.ViewModel)
.DisposeWith(disposable);
});
2019-12-20 20:51:10 +00:00
}
}
}