From e708ef30fa600d4031adc627db8b85becdf34d5c Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Thu, 29 Jun 2023 23:32:05 +0100 Subject: [PATCH] i forgot to make the cancel button actually work --- .../UI/BootstrapperDialogs/WPF/Views/FluentDialog.xaml.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bloxstrap/UI/BootstrapperDialogs/WPF/Views/FluentDialog.xaml.cs b/Bloxstrap/UI/BootstrapperDialogs/WPF/Views/FluentDialog.xaml.cs index eab8e838..e7aba978 100644 --- a/Bloxstrap/UI/BootstrapperDialogs/WPF/Views/FluentDialog.xaml.cs +++ b/Bloxstrap/UI/BootstrapperDialogs/WPF/Views/FluentDialog.xaml.cs @@ -59,7 +59,10 @@ public bool CancelEnabled set { _viewModel.CancelButtonVisibility = (value ? Visibility.Visible : Visibility.Collapsed); + _viewModel.CancelButtonEnabled = value; + _viewModel.OnPropertyChanged(nameof(_viewModel.CancelButtonVisibility)); + _viewModel.OnPropertyChanged(nameof(_viewModel.CancelButtonEnabled)); } } #endregion