mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
29 lines
970 B
C#
29 lines
970 B
C#
using System.Reactive.Disposables;
|
|
using ReactiveUI;
|
|
|
|
namespace Wabbajack
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for MiscSettingsView.xaml
|
|
/// </summary>
|
|
public partial class MiscSettingsView : ReactiveUserControl<SettingsVM>
|
|
{
|
|
public MiscSettingsView()
|
|
{
|
|
InitializeComponent();
|
|
|
|
this.WhenActivated(disposable =>
|
|
{
|
|
// Bind Values
|
|
this.BindStrict(this.ViewModel, x => x.Filters.IsPersistent, x => x.FilterPersistCheckBox.IsChecked)
|
|
.DisposeWith(disposable);
|
|
this.BindStrict(this.ViewModel, x => x.Filters.UseCompression, x => x.UseCompressionCheckBox.IsChecked)
|
|
.DisposeWith(disposable);
|
|
this.WhenAnyValue(x => x.ViewModel.OpenTerminalCommand)
|
|
.BindToStrict(this, x => x.OpenTerminal.Command)
|
|
.DisposeWith(disposable);
|
|
});
|
|
}
|
|
}
|
|
}
|