ICommand
can be assigned or bound to the button's Command
property. This command will be executed when the button is clicked. For more information see binding to commands.Click
is just one of several events that Buttons have. Another example is PointerEnter
or PointerLeave
. You can get the full list of Button Events here.ClickMode
Command
CommandParameter
Command
Content
IsDefault
IsPressed
:pressed
IObservable<bool>
object in to have it dynamically calculate state. Both methods are displayed below. First the "simple" method binding: