diff --git a/src/Wpf.Ui/Controls/InfoBar/InfoBar.cs b/src/Wpf.Ui/Controls/InfoBar/InfoBar.cs index 957edef9a..4aa65a785 100644 --- a/src/Wpf.Ui/Controls/InfoBar/InfoBar.cs +++ b/src/Wpf.Ui/Controls/InfoBar/InfoBar.cs @@ -135,6 +135,6 @@ public InfoBarSeverity Severity /// public InfoBar() { - SetValue(TemplateButtonCommandProperty, new RelayCommand(o => IsOpen = false)); + SetValue(TemplateButtonCommandProperty, new RelayCommand(_ => SetCurrentValue(IsOpenProperty, false))); } }