-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.InfoBar.IsClosable |
winrt property |
Gets or sets a value that indicates whether the user can close the InfoBar.
true
if the user can close the InfoBar
; otherwise, false
. The default is true
.
By default, the user can close the InfoBar
with the close button. You can set this property to false
to remove the close button from the InfoBar
.
You can still close the InfoBar
programatically when this property is false
.