Skip to content

Commit

Permalink
Merge pull request #895 from pokorpa/main
Browse files Browse the repository at this point in the history
  • Loading branch information
pomianowski authored Jan 1, 2024
2 parents 2866a97 + 8cae63b commit d35ca3a
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 d35ca3a

Please sign in to comment.