c# - Get WPF ContextMenu to show on Winforms NotifyIcon -


i using winforms notifyicon there no wpf version, using contextmenu tutorial here: http://www.wpftutorial.net/contextmenu.html

and using mouse placement code found in answer here: http://social.msdn.microsoft.com/forums/en-us/wpf/thread/8cdd4ef1-d31e-42ef-a30e-7b482c0fa163/

my main problem is, method:

private void opencontextmenu(frameworkelement element) {     if( element.contextmenu != null )     {        element.contextmenu.placementtarget = element;        element.contextmenu.isopen = true;     } } 

how used? can tell me steps need show notifyicon

thanks

codeplex has wpf version of notifyicon. might meet needs better.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -