namespace MauiApp.Controls; public partial class Disclaimer : ContentView { public static readonly BindableProperty TextProperty = BindableProperty.Create(nameof(Text), typeof(string), typeof(Disclaimer)); public static readonly BindableProperty DisclamerTypeProperty = BindableProperty.Create(nameof(DisclamerType), typeof(DisclamerTypeEnum), typeof(Disclaimer)); public string Text { get => (string)GetValue(TextProperty); set => SetValue(TextProperty, value); } public DisclamerTypeEnum DisclamerType { get => (DisclamerTypeEnum)GetValue(DisclamerTypeProperty); set => SetValue(DisclamerTypeProperty, value); } public Disclaimer() { InitializeComponent(); } } public enum DisclamerTypeEnum { Error, Info }