From a6c70bc36b341700f40776ddf5b228fb67f0061b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Pokorn=C3=BD?= Date: Sun, 31 Dec 2023 20:21:08 +0100 Subject: [PATCH] Fix #540. --- src/Wpf.Ui/Controls/InfoBar/InfoBar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); } }