36 lines
681 B
C#
36 lines
681 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Sarand.Net.Mobile.Maui.Controls
|
|
{
|
|
/// <summary>
|
|
/// Application button extension point. It currently adds no behavior beyond
|
|
/// the MAUI <see cref="Button"/> contract.
|
|
/// </summary>
|
|
public class SamButton : Button, ISamControl
|
|
{
|
|
// --- Construction ---
|
|
|
|
public SamButton()
|
|
{
|
|
DefaultFontSize = FontSize;
|
|
}
|
|
|
|
// --- Component state ---
|
|
|
|
public void SetControlActivity(bool enabled)
|
|
{
|
|
if (IsEnabled != enabled) IsEnabled = enabled;
|
|
}
|
|
|
|
// --- Properties ---
|
|
|
|
public double DefaultFontSize { get; }
|
|
|
|
// --- The End ---
|
|
}
|
|
}
|