FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Proposal: additional attributes for generated commands · Issue #14 · DevExpress/DevExpress.Mvvm.CodeGenerators · GitHub

Proposal: additional attributes for generated commands #14

Description

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.

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


Back | FazBrowse Home | New Git URL