Back to Devexpress

DxMessageBox.ShowIcon Property

blazor-devexpress-dot-blazor-dot-dxmessagebox-862653ba.md

latest1.5 KB
Original Source

DxMessageBox.ShowIcon Property

Specifies whether to show an icon in the message box.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool ShowIcon { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to show the icon; otherwise, false.

|

Remarks

A message box displays a predefined icon. The icon appearance depends on RenderStyle.

razor
<DxMessageBox @bind-Visible="MessageBoxVisible" 
              RenderStyle="MessageBoxRenderStyle.Danger"
              ... />

Run Demo

Set the ShowIcon property to false to hide the icon.

razor
<DxMessageBox @bind-Visible="MessageBoxVisible" 
              RenderStyle="MessageBoxRenderStyle.Danger"
              ShowIcon="false"
              ... />

See Also

DxMessageBox Class

DxMessageBox Members

DevExpress.Blazor Namespace