Back to Devexpress

DxMessageBox.Title Property

blazor-devexpress-dot-blazor-dot-dxmessagebox-8780fefd.md

latest1.4 KB
Original Source

DxMessageBox.Title Property

Specifies the message box title.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public string Title { get; set; }

Property Value

TypeDefaultDescription
Stringnull

The message box title.

|

Remarks

Use the Title property to specify the message box title:

razor
<DxButton Text="Show Alert" Click="@(() => MessageBoxVisible = true)" />

<DxMessageBox @bind-Visible="MessageBoxVisible"
              Title="Error"
              Text="Unable to process the request. Please try again later or contact support."
              OkButtonText="Contact Support"
              CancelButtonText="Try Later"
              RenderStyle="MessageBoxRenderStyle.Danger"
              Type="MessageBoxType.Confirmation"/>
@code {
    bool MessageBoxVisible { get; set; } = false;
}

Run Demo

See Also

DxMessageBox Class

DxMessageBox Members

DevExpress.Blazor Namespace