FindMyFiles
FindMyFiles.Services
AppNotification Class
One entry in the InfoBar stack. Immutable, identity-stamped, and carries an optional action button so a notification can offer its own remedy (e.g. "restart the app" after a service install).
public sealed record AppNotification : System.IEquatable<FindMyFiles.Services.AppNotification>
Inheritance System.Object → AppNotification
Implements System.IEquatable<AppNotification>
Constructors
AppNotification(NotifySeverity, string, string, string, Action) Constructor
One entry in the InfoBar stack. Immutable, identity-stamped, and carries an optional action button so a notification can offer its own remedy (e.g. "restart the app" after a service install).
public AppNotification(FindMyFiles.Services.NotifySeverity Severity, string Message, string? Detail=null, string? ActionLabel=null, System.Action? Action=null);
Parameters
Severity NotifySeverity
Visual style + log level + auto-dismiss policy.
Message System.String
The headline shown in the InfoBar.
Detail System.String
Optional secondary line (often an exception message).
ActionLabel System.String
Caption for the action button; null hides it.
Action System.Action
Invoked when the action button is pressed; see Invoke().
Properties
AppNotification.Action Property
Invoked when the action button is pressed; see Invoke().
public System.Action? Action { get; init; }
Property Value
AppNotification.ActionLabel Property
Caption for the action button; null hides it.
public string? ActionLabel { get; init; }
Property Value
AppNotification.Detail Property
Optional secondary line (often an exception message).
public string? Detail { get; init; }
Property Value
AppNotification.Id Property
Stable per-notification identity (a hex GUID) so the InfoBar list can track and remove this exact entry.
public string Id { get; }
Property Value
AppNotification.Message Property
The headline shown in the InfoBar.
public string Message { get; init; }
Property Value
AppNotification.Severity Property
Visual style + log level + auto-dismiss policy.
public FindMyFiles.Services.NotifySeverity Severity { get; init; }
Property Value
Methods
AppNotification.Invoke() Method
x:Bind target for the InfoBar action button (no-op when the notification carries no action).
public void Invoke();