using System.Reactive.Disposables; using ReactiveUI; namespace Wabbajack { /// /// Interaction logic for MiscSettingsView.xaml /// public partial class MiscSettingsView : ReactiveUserControl { public MiscSettingsView() { InitializeComponent(); this.WhenActivated(disposable => { // Bind Values this.WhenAnyValue(x => x.ViewModel.OpenTerminalCommand) .BindToStrict(this, x => x.OpenTerminal.Command) .DisposeWith(disposable); }); } } }