c# - Disable a command from code -


i have command want disable depending on logged user role, there way "block" command , make not trigger code ?

<dxmvvm:eventtocommand x:name="ev_comm" passeventargstocommand="true" command="{binding editcommand}" eventname="mousedoubleclick" markroutedeventsashandled="true"> 

something this:

myviewmodel = (myviewmodel)datacontext;  a.editcommand.disable; 

thanks


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -