-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some problems with calling context menu #37
Comments
For 1. is it with winforms or wpf? do you have an example screenshot or video. |
Both problems arise on wpf. Question 1 is somewhat indescribable, so I drew a demo graphics. This is a taskbar demo. Wpf was used to draw the blue graphics. Right-click on blue graphics is invalid, context menu can only be displayed by right-clicking in the black area. If the blue graphics is replaced by an image control, the result is the same. |
Thanks for the visual. I believe its because wpf is not bubbling the event up to winforms. I'll see what I can do with that. |
I found that its because the form doesn't pass the click even through to the taskbar. I have a fix for non transparent wpf controls but for transparency i'm not currently sure on how to fix it. |
Yes, it's not easy to solve these two problems. I'm also studying how to fix the second problem (edge jagged for non-black background). |
I found a few strange problems. Control edges have color residues because TranparencyKey & BackColor is imperfect. But transparent methods do not show the same effect in various versions of Windows10. The background of the system taskbar before 19H1 is black by default, so you won't see black serrated teeth. Now Microsoft has added the light mode, and the taskbar and start menu background can turn white. The problem of edge color residue became serious and I tried many methods. First, I changed the transparent color to magenta or white, and the result was still terrible. Then I quoted the project: https://github.com/patbec/TaskbarSampleExtension. I modified the file to try to load the WPF control directly.
Without specifying the transparent color, only "BackColorTransparent = true" is needed to achieve the perfect display effect. Of course, this method only works under 19H1, and will turn into a black background in the old system. The result surprised me. This may be related to Microsoft's continuous improvement of the system kernel? Multiple strategies may be needed to solve the problem of perfect background transparency. |
Thanks for the news. This is really interesting. I guess we'll just have to rely on microsoft's changes. |
In version 3.1 I updated so transparency works properly. Context menu is still a bit of an issue though |
ContextMenu may not be a problem? Although it's not perfect, we can customize a menu. For example:
|
Yeah, creating your own context menu is what I would recommend. |
Thank the author for making this project, but I found some small problems in use.
The text was updated successfully, but these errors were encountered: