Skip to main content
All docs
V24.2
.NET 8.0+
  • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

NotificationsOptionsBase.ShowNotificationsWindow Property

Specifies whether XAF displays the Notifications window automatically or a user should invoke it manually.

Namespace: DevExpress.ExpressApp.Notifications

Assembly: DevExpress.ExpressApp.Notifications.v24.2.dll

NuGet Package: DevExpress.ExpressApp.Notifications

Declaration

public bool ShowNotificationsWindow { get; set; }

Property Value

Type Default Description
Boolean true

true if XAF displays the Notifications window automatically; otherwise, false.

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