NotificationsOptionsBase.NotificationsStartDelay Property
Specifies the delay after the application start and before the initial Notifications window display.
Namespace: DevExpress.ExpressApp.Notifications
Assembly: DevExpress.ExpressApp.Notifications.v24.2.dll
NuGet Package: DevExpress.ExpressApp.Notifications
Declaration
Property Value
Type | Default | Description |
---|---|---|
TimeSpan | 5 seconds | A TimeSpan value that specifies the delay after the application starts and before the initial Notifications window is displayed. |
Remarks
The following example demonstrates how to specify this property:
namespace MySolution.Blazor.Server;
public class Startup {
public void ConfigureServices(IServiceCollection services) {
// ...
services.AddRazorPages();
services.AddServerSideBlazor();
services.AddHttpContextAccessor();
services.AddScoped<CircuitHandler, Services.Circuits.CircuitHandlerProxy>();
services.AddXaf(Configuration, builder => {
builder.UseApplication<MySolutionBlazorApplication>();
// ...
builder.Modules
// ...
.AddNotifications(options => {
options.CanAccessPostponedItems = true;
options.NotificationsRefreshInterval = TimeSpan.FromSeconds(1);
options.NotificationsStartDelay = TimeSpan.FromSeconds(15);
options.ShowDismissAllAction = true;
options.ShowNotificationsWindow = false;
options.ShowRefreshAction = true;
});
});
};
}
See Also