You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.9 KiB
46 lines
1.9 KiB
using Microsoft.Maui.Graphics;
|
|
|
|
namespace LivreLand.View.ContentViews;
|
|
|
|
public partial class HomeButtonView : ContentView
|
|
{
|
|
public static readonly BindableProperty ButtonTitleProperty = BindableProperty.Create(nameof(ButtonTitle), typeof(string), typeof(HomeButtonView), string.Empty);
|
|
public string ButtonTitle
|
|
{
|
|
get => (string)GetValue(HomeButtonView.ButtonTitleProperty);
|
|
set => SetValue(HomeButtonView.ButtonTitleProperty, value);
|
|
}
|
|
|
|
public static readonly BindableProperty ButtonIconProperty = BindableProperty.Create(nameof(ButtonIcon), typeof(string), typeof(HomeButtonView), string.Empty);
|
|
public string ButtonIcon
|
|
{
|
|
get => (string)GetValue(HomeButtonView.ButtonIconProperty);
|
|
set => SetValue(HomeButtonView.ButtonIconProperty, value);
|
|
}
|
|
|
|
public static readonly BindableProperty ButtonNumberProperty = BindableProperty.Create(nameof(ButtonNumber), typeof(string), typeof(HomeButtonView), string.Empty);
|
|
public string ButtonNumber
|
|
{
|
|
get => (string)GetValue(HomeButtonView.ButtonNumberProperty);
|
|
set => SetValue(HomeButtonView.ButtonNumberProperty, value);
|
|
}
|
|
|
|
public static readonly BindableProperty ButtonIconColorProperty = BindableProperty.Create(nameof(ButtonIconColor), typeof(Color), typeof(HomeButtonView));
|
|
public Color ButtonIconColor
|
|
{
|
|
get => (Color)GetValue(HomeButtonView.ButtonIconColorProperty);
|
|
set => SetValue(HomeButtonView.ButtonIconColorProperty, value);
|
|
}
|
|
|
|
public static readonly BindableProperty ButtonCommandProperty = BindableProperty.Create(nameof(ButtonCommand), typeof(Command), typeof(HomeButtonView));
|
|
public Command ButtonCommand
|
|
{
|
|
get => (Command)GetValue(HomeButtonView.ButtonCommandProperty);
|
|
set => SetValue(HomeButtonView.ButtonCommandProperty, value);
|
|
}
|
|
|
|
public HomeButtonView()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
} |