c# - event handlers in WPF mvvm pattern -
i new wpf mvvm. came across document button click event has following cs code , xaml code. lets want keyup event button how handle it.
<button content="update" grid.row="1" height="23" horizontalalignment="left" margin="310,40,0,0" name="btnupdate" verticalalignment="top" width="141" command="{binding path=updatecommad}" /> private icommand mupdater; public icommand updatecommand { { if (mupdater == null) mupdater = new updater(); return mupdater; } set { mupdater = value; } } private class updater : icommand { #region icommand members public bool canexecute(object parameter) { return true; } public event eventhandler canexecutechanged; public void execute(object parameter) { } #endregion }
Comments
Post a Comment