|
|
Comments and Discussions
|
|
 |

|
Really appreciate what you did. I don't know WPF but I know MFC, so I translated it to MFC, then it worked!
And then I found the same issue as you met, the popup window lost its topmost position.
Finally I found the solution, add a line when the popup window shows:
::SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE|SWP_SHOWWINDOW|SWP_NOACTIVATE);
So, maybe you know how to solve it in WPF way now. good luck!
|
|
|
|

|
Brilliant, thanks. I'll try make some time to get this fix implemented.
|
|
|
|

|
Wow, this looks great! Would it be possible to use this as a framework for a free tool for one my commercial projects?
|
|
|
|

|
Excellent article. Good Explanation. Code works great after vs2010 migration.
|
|
|
|

|
Great to hear it still works fine and that you enjoyed the article.
|
|
|
|

|
Short code, gorgeous appearance
|
|
|
|
|
|

|
A seemingly small bit of functionality, but well explained and a well illustrated article. Good job.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|

|
Thanks - glad you like it.
|
|
|
|

|
My vote of 5!
cheers,
Ratish Philip
Blog: http://wpfspark.wordpress.com/
|
|
|
|

|
Thanks, its getting a bit old now and if I get chance I'll update it with some enhancements I have made using System.AddIn to load plug ins in to the menu.
|
|
|
|
|

|
Hi Murray,
First of all I want to thank you for the excellent job you did creating such a code. I'm really impressed!
I was trying to use this code, in fact I need to use two events the DoubleClick and the Click,
_trayIcon.TrayMouseDoubleClick += _trayNotifyIcon_DoubleClick;
_trayIcon.TrayLeftMouseDown += _trayIcon_TrayLeftMouseDown;
but when I do a DoubleClick, I received both events at the same time, first the Click, then the DoubleClick, is there any way I can receive those two exclusively?
Regards
Alex.
|
|
|
|
|

|
Very nice implementation Mate !!! Liked it so much !!
My 5 is for you
Moim Hossain
R&D Project Manager
BlueCielo ECM Solutions BV
|
|
|
|

|
Glad you liked it, I take pride in producing quality output
|
|
|
|

|
Great work! Looks stunning and has excellent functionality.
|
|
|
|
|

|
Yes. Truly beautiful and professionnal. I haven't tried it yet but I did bookmark for future reading. Thanks for sharing such (it seems) quality work.
|
|
|
|

|
Nice Article. Thank you for sharing your work.
|
|
|
|
|

|
Hello,
I have three monitors side by side (horizontally): The middle one is the main screen, the taskbar is aligned to the right border on the left screen and your popup is appearing at the right-bottom of the middle screen -- which involves a mouse movement of approx. 2000 pixels from the notifyicon to the popup.
I would prefer it appearing left to the taskbar on the left screen.
|
|
|
|

|
Just when I thought I had it tested and working well, someone adds 3 screens and changes the toolbar location 8-)
Would the solution be to position the pop up in the closest corner to the icon? Depending on where you want it to pop up, you would need to do some math to calculate the position you want and apply that to the pop up. It should not be too tricky.
|
|
|
|

|
Congratulations for your article and your code: simple and understandable. Everyone should follow your example.
Keep writing and explaining this way
---
|
|
|
|
|

|
First of all, thanx for your article. It saves me and my team members a lot of research.
I noticed that your buttons do not respond to Alt-Access key modifiers. If you want that to work just add RecognizesAccessKey="True" to the XAML code of the contentpresenter box in your button resource.
|
|
|
|

|
Thanks Hans - great comment and I am glad you have saved some time with the code.
|
|
|
|

|
Good!
|
|
|
|
|

|
not sure whats going on(i am brand new to WPF), but when i compile and run your code the tray icon shows up but no window ever appears when i mouse over. I messed with some setting and if i turn off Allow Transparency in uiMainNotifyWindow the popup window will appear but there is a large black box in the lower right corner of my screen.
What am i missing?
Win7, .Net 3.5 sp1, VS 2008
|
|
|
|

|
Hi,
I have tested successfully on XP, Vista, Windows 7, Windows Server 2008 and Windows 2008 R2 with Visual Studio 2008 and .Net 3.5 SP1 - so your combination should work fine.
Here are some things to look in to:
1) Did you try using the compiled package?
2) Do other WPF applications run perfectly on your machine?
3) Have you tried re-installing the relevant .net Framework?
4) Have you checked for known WPF compatibility issues with your hardware and WPF?
5) Have you tried Windows Update to see if there are any applicable fixes?
6) Do you have access to another machine to try it on?
7) I have sometimes seen similar issues when running on a Virtual Machine environment due to the video card set up
Let me know what you find, I have only ever seen similar issues on corrupted setups - or on some Virtual Machines.
Regards
|
|
|
|

|
yep, virtual machine issue.
thanks for the help and the great code!!!!
|
|
|
|

|
Glad you got to the bottom of it - enjoy the code
|
|
|
|

|
greeeeeeeeeeat ........
|
|
|
|

|
Glad you like!
|
|
|
|

|
Wow.. good work I like it
Thanks and Regards,
prasad
|
|
|
|

|
Glad u like it
|
|
|
|

|
I just read that in .net 4.0 / WPF 4.0 the notify icon / taskbar integration will be included in the framework. Nice!
modified on Monday, July 13, 2009 4:06 PM
|
|
|
|

|
WPF 4.0 has notify-icon/systray integration? Where?
|
|
|
|

|
I havent worked in detail with .Net 4.0 yet, but after a small investigation it seems not. 8-(
|
|
|
|

|
Nice article, nice project, nice code. Methinks I'll take some Friday afternoon WPF playtime ... Thanks!
|
|
|
|

|
Cheers, enjoy - I hope it gives you a good little host/base for some cool apps. I have tons of ideas, wish I had tons of time
|
|
|
|

|
Murray,
This one sounds like a nice alternative to my implementation so one wouldn't have to rely on an external assembly - looking forward to it! However, it appears the downloads are broken - I can't open any of the two archives on my machine. You should have a look at this asap, or your ratings will be off to a bad start
Cheers,
Philipp
NetDrives - Open Source Network Share Management Awesomeness
modified on Thursday, May 28, 2009 8:59 AM
|
|
|
|

|
I hope this problem gets solved soon, I really want to give it a spin
|
|
|
|

|
I see these have been fixed - try again and let me know what u think.
|
|
|
|

|
All good now.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|

|
Thanks Chris - do u dig it ?
|
|
|
|
 |
|
|
General News Suggestion Question Bug Answer Joke Rant Admin
|
Integrating WPF and XAML with the Windows forms NotifyIcon control to produce a slick, styled popup window when the mouse is moved over the NotifyIcon
| Type | Article |
| Licence | CPOL |
| First Posted | 28 May 2009 |
| Views | 100,149 |
| Downloads | 8,439 |
| Bookmarked | 176 times |
|
|