Improve shared MAUI controls and tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,28 +6,25 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Sarand.Net.Mobile.Maui.Controls
|
||||
{
|
||||
//======================================================================
|
||||
public class SamCheckBox : CheckBox
|
||||
/// <summary>
|
||||
/// Application check-box extension point. It currently adds no behavior
|
||||
/// beyond the MAUI <see cref="CheckBox"/> contract.
|
||||
/// </summary>
|
||||
public class SamCheckBox : CheckBox, ISamControl
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Definitions.
|
||||
// --- Construction ---
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SamCheckBox()
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
// --- Component state ---
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Control events.
|
||||
public void SetControlActivity(bool enabled)
|
||||
{
|
||||
if (IsEnabled != enabled) IsEnabled = enabled;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// --- The End ---
|
||||
}
|
||||
//======================================================================
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user