Skip to content

Commit

Permalink
Fix #540.
Browse files Browse the repository at this point in the history
  • Loading branch information
pokorpa committed Dec 31, 2023
1 parent 7fcc2d8 commit a6c70bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Wpf.Ui/Controls/InfoBar/InfoBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,6 @@ public InfoBarSeverity Severity
/// <inheritdoc />
public InfoBar()
{
SetValue(TemplateButtonCommandProperty, new RelayCommand<bool>(o => IsOpen = false));
SetValue(TemplateButtonCommandProperty, new RelayCommand<object>(_ => SetCurrentValue(IsOpenProperty, false)));
}
}

0 comments on commit a6c70bc

Please sign in to comment.