29 lines
792 B
C#
29 lines
792 B
C#
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
|
|
} |