Class AddRowCommandGridBehaviour<T>
- Namespace
- The.WPF.Fields
- Assembly
- Instagile.WPF.dll
public sealed class AddRowCommandGridBehaviour<T> : GridBehaviour where T : IEntity
Type Parameters
T
- Inheritance
-
AddRowCommandGridBehaviour<T>
- Inherited Members
-
Constructors
AddRowCommandGridBehaviour(Func<ISurface, T, IScreenCommand>)
public AddRowCommandGridBehaviour(Func<ISurface, T, IScreenCommand> commandFactory)
Parameters
commandFactory Func<ISurface, T, IScreenCommand>
AddRowCommandGridBehaviour(string, Action<T>)
[Obsolete("Pass a Func<ISurface, T, IScreenCommand> — use ScreenCommandFactory to build the command with requiresEditableContext where applicable")]
public AddRowCommandGridBehaviour(string commandText, Action<T> commandAction)
Parameters
commandText string
commandAction Action<T>
AddRowCommandGridBehaviour(string, Func<T, Task>)
[Obsolete("Pass a Func<ISurface, T, IScreenCommand> — use ScreenCommandFactory to build the command with requiresEditableContext where applicable")]
public AddRowCommandGridBehaviour(string commandText, Func<T, Task> asyncCommandAction)
Parameters
commandText string
asyncCommandAction Func<T, Task>
Methods
GetCustomRowCommands<U>(ISurface, U)
public override IEnumerable<IScreenCommand> GetCustomRowCommands<U>(ISurface surface, U row) where U : IEntity
Parameters
surface ISurface
row U
Returns
- IEnumerable<IScreenCommand>
Type Parameters
U