dotMorten / WinUIEx

WinUI Extensions
https://dotmorten.github.io/WinUIEx
MIT License
573 stars 36 forks source link

Add is always on bottom function function. #154

Closed Jack251970 closed 7 months ago

Jack251970 commented 7 months ago

After last discussion about Always On Bottom #150, I implement this function in WinUIEX and integrate the handle event in the window manager.

Also, I add BringToBottom function to enable one window to the bottom of all windows.

These two function have been added to the sample app.

Jack251970 commented 7 months ago

Now, it's possible to set IsAlwaysOnBottom in constructor funtion of WindowEx instance just like IsAlwaysOnTop. 🤔

dotMorten commented 7 months ago

Thank you for taking the time to do this. I appreciate the time you're taking to help contribute. However as discussed in the issue, this specific feature was considered too special case for WinUIEx and also linked to a resource stating how it was not recommended (by THE Raymond no less). At the end of the day I'd be the one maintaining this code long term.

I do believe winuiex already provides all the hooks for you to do this fairly easily (mainly around dealing with the message queue). If not, I'll be more than happy to help look into any missing extensibility points to reduce the code an app would need to provide.

Jack251970 commented 7 months ago

Sure, I get it. The original idea to integrate this function into WinUIEx is to ultilize the private window mangaer inside WinUIEx class, which can reduce my codes. 😅