ICommandSourceExtensions
Wisej.Web.Markup.ICommandSourceExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.ICommandSourceExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds extension methods to the interface.
Sets the Command property of the specified .
TCommandSource
button
The command source for which to set the Command property.
value
Returns: . The modified command source with the updated Command property.
This method allows you to associate a command with the command source, enabling command-based interactions.
TCommandSource
button
The command source to attach the event handler to.
action
An action to execute when the command changes.
This method allows you to execute a custom action whenever the command associated with the command source changes.
The type of the command source, must implement .
The to associate with the command source.
Attaches an event handler for the CommandChanged event of the specified .
The type of the command source, must implement .
Returns: . The modified command source with the attached CommandChanged event handler.