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.
37 lines
1.0 KiB
37 lines
1.0 KiB
namespace ShoopNCook.Views;
|
|
|
|
public partial class HeadedButton : ContentView
|
|
{
|
|
|
|
private readonly BindableProperty TextProperty =
|
|
BindableProperty.Create("Text", typeof(string), typeof(HeadedButton), "No Text Defined.");
|
|
|
|
private readonly BindableProperty HeadColorProperty =
|
|
BindableProperty.Create("HeadColor", typeof(string), typeof(HeadedButton), "#FFFFFF");
|
|
|
|
private readonly BindableProperty HeadSourceProperty =
|
|
BindableProperty.Create("HeadSource", typeof(string), typeof(HeadedButton), default(string));
|
|
|
|
public string Text
|
|
{
|
|
get => (string)GetValue(TextProperty);
|
|
set => SetValue(TextProperty, value);
|
|
}
|
|
|
|
public string HeadColor
|
|
{
|
|
get => (string)GetValue(HeadColorProperty);
|
|
set => SetValue(HeadColorProperty, value);
|
|
}
|
|
|
|
public string HeadSource
|
|
{
|
|
get => (string)GetValue(HeadSourceProperty);
|
|
set => SetValue(HeadSourceProperty, value);
|
|
}
|
|
|
|
public HeadedButton()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
} |