NotificationViewAttribute.cs
using System;
namespace BetterUI;
/// <summary>
/// An attribute that can be applied to a type to specify a notification view for a <see cref="Notification"/>.
/// </summary>
/// <remarks>
/// The type that this attribute is applied to must be a panel.
/// </remarks>
[AttributeUsage( AttributeTargets.Class | AttributeTargets.Struct )]
public sealed class NotificationViewAttribute( Type type ) : Attribute
{
/// <summary>
/// The type of the notification view.
/// </summary>
public Type Type => type;
}