maui-linux/Xamarin.Forms.Core/IButtonElement.cs

27 строки
686 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Windows.Input;
namespace Xamarin.Forms.Internals
{
[EditorBrowsable(EditorBrowsableState.Never)]
interface IButtonElement
{
//note to implementor: implement this property publicly
object CommandParameter { get; set; }
ICommand Command { get; set; }
bool IsPressed { get; }
//note to implementor: but implement these methods explicitly
void PropagateUpClicked();
void PropagateUpPressed();
void PropagateUpReleased();
void SetIsPressed(bool isPressed);
void OnCommandCanExecuteChanged(object sender, EventArgs e);
bool IsEnabledCore { set; }
}
}