NotifyIcon.HookWindow == null
Open
@pomianowski is already working on this.
Since Aug 18, 2022.
bug
- Dominant language
- C#
- Stars
- 9.6k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Since Version 2.0.2 the NotifyIcon.HookWindow returns null. We have an NotifyIcon that is created by xaml in the titleBar.Tray section.
This handle was nessasary to determ the position of the Icon.
To Reproduce
Steps to reproduce the behavior:
- Create a NotifyIcon via xaml in the titleBar.Tray
- Attach a x:Name to the NotifyIcon
- Access the NotifyIcon via name at runtime and see that the .HookWindow is null
Expected behavior
Expected here to find a pointer to indetifiy the NotifyIcon like in Version 2.0.1
Desktop (please complete the following information):
- OS: Windows 11
- .NET: net6.0-windows10.0.18362.0
- Version: [e.g. 1.0.4-prerelease45]
Additional context
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.