using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; namespace DesertPaintCodex.Views { public class EmbeddedWarningBox : UserControl { public static readonly StyledProperty TitleProperty = AvaloniaProperty.Register(nameof(Title)); public string Title { get => GetValue(TitleProperty); set => SetValue(TitleProperty, value); } public static readonly StyledProperty MessageProperty = AvaloniaProperty.Register(nameof(Message)); public string Message { get => GetValue(MessageProperty); set => SetValue(MessageProperty, value); } public static readonly StyledProperty Message2Property = AvaloniaProperty.Register(nameof(Message2)); public string Message2 { get => GetValue(Message2Property); set => SetValue(Message2Property, value); } public EmbeddedWarningBox() { InitializeComponent(); } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); } } }