// TODO: Remove once Avalonia fixes XAML parsing public CreateCommonSecretsWindow() { InitializeComponent(); #if DEBUG this.AttachDevTools(); #endif DataContext = new CreateCommonSecretsViewModel(this.OkClose, this.CancelClose); }
public CreateCommonSecretsWindow(Action <KeyDerivationFunctionEntry, string> onPositive) { InitializeComponent(); #if DEBUG this.AttachDevTools(); #endif this.positive = onPositive; DataContext = new CreateCommonSecretsViewModel(this.OkClose, this.CancelClose); }