blazor-devexpress-dot-blazor-dot-dxtoast-ead6ef3c.md
The name of a provider that will display the notification.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue("")]
[Parameter]
public string ProviderName { get; set; }
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
The provider name.
|
The DxToastProvider component serves as a toast container and should be declared in the place where toasts will be displayed. If a page contains several DxToastProvider objects, use the ProviderName property to define a provider that will display the toast notification.
The ProviderName property value must match the Name value of a toast provider.
<DxToastProvider Name="WarningProvider" RenderStyle="ToastRenderStyle.Warning" />
<DxButton Text="Show a toast" Click="ShowToast" />
<DxToast @ref=toast ProviderName="WarningProvider" Text="The process cannot access the file." />
@code {
DxToast toast;
private void ShowToast() {
toast.Show();
}
}
See Also