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