using System.Windows; using System.Windows.Controls; namespace Titano.Ui.Controls; /// Empty state: the mark, one sentence and the action buttons supplied as content (BRIEF ยง0.2 rule 6). public class EmptyState : ContentControl { public static readonly DependencyProperty MessageProperty = DependencyProperty.Register(nameof(Message), typeof(string), typeof(EmptyState)); static EmptyState() { DefaultStyleKeyProperty.OverrideMetadata(typeof(EmptyState), new FrameworkPropertyMetadata(typeof(EmptyState))); } public string? Message { get => (string?)GetValue(MessageProperty); set => SetValue(MessageProperty, value); } }