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.
30 lines
638 B
30 lines
638 B
namespace ShoopNCook.Views;
|
|
using Microsoft.Maui.Graphics;
|
|
|
|
// Classe représentant un bouton avec une tête (une image en préfixe)
|
|
public partial class HeadedButton : ContentView
|
|
{
|
|
// Texte du bouton
|
|
public string Text
|
|
{
|
|
set => BtnLabel.Text = value;
|
|
}
|
|
|
|
// Couleur de l'image en préfixe
|
|
public string HeadColor
|
|
{
|
|
set => PrefixBorder.BackgroundColor = Color.FromArgb(value);
|
|
}
|
|
|
|
// Source de l'image en préfixe
|
|
public string HeadSource
|
|
{
|
|
set => PrefixImage.Source = ImageSource.FromFile(value);
|
|
}
|
|
|
|
public HeadedButton()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
}
|