40 lines
840 B
C#
40 lines
840 B
C#
using Sarand.Net.Standard.Base.App;
|
|
using Sarand.Net.Standard.Base.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Sarand.Net.Mobile.Maui.Controls
|
|
{
|
|
/// <summary>
|
|
/// Application image-button extension point. It currently adds no active
|
|
/// behavior beyond the MAUI <see cref="ImageButton"/> contract.
|
|
/// </summary>
|
|
public class SamImageButton : ImageButton, ISamControl
|
|
{
|
|
// --- Construction ---
|
|
|
|
public SamImageButton()
|
|
{
|
|
}
|
|
|
|
// --- Component state ---
|
|
|
|
public void SetControlActivity(bool enabled)
|
|
{
|
|
if (IsEnabled != enabled) IsEnabled = enabled;
|
|
}
|
|
|
|
// --- Events ---
|
|
|
|
protected virtual void Button_Clicked(object? sender, EventArgs e)
|
|
{
|
|
SaLogger.Info(SysUtil.Fn + " Button clicked.");
|
|
}
|
|
|
|
// --- The End ---
|
|
}
|
|
}
|