Skip to content

Proposal: additional attributes for generated commands #14

Description

@jubba2001

Please, add the possibility to copy additional attributes from methods to generated commands, as it is done for generated properties:

partial class ViewModel {

    [GenerateProperty]
    [StringLength(100, MinimumLength = 5)]
    string username;

    [GenerateCommand]
    [Display(GroupName = "<Commands>-", Name = "New...")]
    void AddNew()
    {
        //...
    }
}

Adding attributes to generated DelegateCommands, allows programmers to create attribute-based logic on commands. By example, to customise displaying of commands in the view.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions