lepoco / lepoco/wpfui

NotifyIcon.HookWindow == null

Open
#351 1 comment 0 reactions 1 assignee View on GitHub

@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:

  1. Create a NotifyIcon via xaml in the titleBar.Tray
  2. Attach a x:Name to the NotifyIcon
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.