How can a create a gui like MS PowerToys on windows?

reactoimpact 20 Reputation points
2023-07-13T22:52:53.27+00:00

I have an app idea in mind that would greatly fit the MS PowerToys interface.

Screenshot 2023-07-10 192255

I need some skeleton code that replicates how when you click the icon, a small window pops out just above it.

There is a git hub repo for it (https://github.com/microsoft/PowerToys) but I am fairly new to .NET and C# so I am unable to find the bits I need.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 90,686 Reputation points
    2023-07-14T06:43:15.8766667+00:00

    The code is at https://github.com/microsoft/PowerToys/blob/main/src/runner/tray_icon.cpp

    It uses Shell_NotifyIcon api

    I had done a simplified sample in C#/WinUI 3 : WinUI3_NotifyIcon


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.