arion
❔ TrayIcon Context Menu
Regarding the System Tray Overflow Menu, what determines if the menu stays open or closes shortly after?
I have checked to see if its Window Focus, for all actions the focus is shifted to the window of the tray icon.
Window Messages? In the example video 2/3 examples use a custom window to render their context menu, one works, the other doesn't (Riot Client works, Battle.net doesn't)
I couldn't find if anyone else has had this problem or looked into it before but I would like to know how to keep that overflow menu open while your window is rendered to prevent the Steam window from the example closing the overflow menu prematurely (while the window is still active)
tl;dr I would like to know what (low level or high level) causes the Riot Client window to keep the overflow menu active and not the Steam window
2 replies
❔ How can I get the Visual Tree root of a Xaml process?
Visual Studio has a "Live Visual Tree" feature that allows you to see the visual tree of a process (native or managed) Examples of this working is Windows Terminal (C# mainly) and Windows Explorer
https://cdn.discordapp.com/attachments/883435300880261120/1043756088677371975/81041c55-7889-48d1-ac78-bf130172f7a8_20-11-2022.png
Can I get some pointers on where to start on manipulating other processes' xaml objects?
2 replies
FindWindow by lpClassName. Is there an event based alternative to polling?
The code summarises the issue pretty well:
User32 comes from the Nuget package "PInvoke.User32"
Setting the window requires administrator or you will get a Win32Error on 'retVal', the code addresses an issue on Windows11
My question is, is there some sort of Event based alternative to polling to find that window handle?
The main focus of the question is the first 3 lines of actual code:
2 replies