wpf - Disable other menu items when one of the menu item is clicked c# -
i have simple menu in wpf client c# application user should able select 1 item @ time. if 1 of items selected, other items should disabled until operation completed.
for example, have following menu
<menuitem header="help"> <separator></separator> <menuitem header="user manual.." click="usagedocmenuitem_click" /> <separator></separator> <menuitem header="login" click="loginitem_click"/> <separator></separator> <menuitem header="about" click="aboutmenuitem_click"/> <separator></separator> </menuitem>`
if user clicks login, user manual , should disabled until operation trigerred login finished.
which c# design or code method can used implement this?
so means there menu items , when user clicks on 1 of them example : login till time action completed login should enabled , other menu items should disabled.
you need create event of button click , within same need write code find other menu items , disable them.
button_click event(...) { //...disable other menu items }
Comments
Post a Comment