Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor - How to execute the form submit in Button click using ICommand

$
0
0

How to execute the form submit in Button click using ICommand

How to pass parameter in ICommand execute

@using System.Windows.Input<button @onclick="buttonClick"> Blazor Button</button>@code {    private ICommand _command;    public ICommand Command    {        get => _command;        set => _command = value;    }    private void buttonClick()    {        this.Command?.Execute(null);    }}

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>