Answered notifyicon contextmenu in Wpf

  • Thursday, March 01, 2012 5:37 AM
     
     

    I have a contextmenu,for notifyicon for wpf window in wpf as Open and Exit menuitems.

    i have a problem that when i click on nitifyicon its working fine that is showing contextmenu and performing related operations. but when menu is opened and if i click anywhere except that menu items the opened menu is not closing. it will close if i click any where in monitor. please help me.

    i wrote code like

    System.Windows.Controls.Contextmenu menu=(System.Windows.Controls.Contextmenu)this.findresource("menuname");

    menu.isopen=true;

    help me.

All Replies