Open Tinekk opened 2 years ago
Not just the NotifyIcon, most of the controls with click handler in general. E.g ButtonRightClick & ButtonLeftClick in messagebox & dialog would be great to have an option to use those as Command using binding
NotifyIcon does support binding. So does the context menu. Its just that the context menu isn't part of the same visual tree and therefore doesn't have the same DataContext. This goes for any context menu, not specific to wpfui. One can fix this by setting the DataContext of the context menu in the code behind (i.e. this.notifyIcon.Menu.DataContext = viewModel).
I am creating an application that has dynamic tray icon (both icon and tooltip). So far I was able to do this using hardcodet. It would be cool to have such ability for wpfui. Also MenuItem commands are not working.
To Reproduce
Expected behavior
Desktop:
Additional context Working Hardcodet taskabar icon