dotMorten / WinUIEx

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

Controls in Custom Titlebar aren't interactive #27

Closed AlexanderBlackman closed 2 years ago

AlexanderBlackman commented 2 years ago

The custom titlebar works for textblocks/images, but not for interactive content.

example of titlebar not being interactive None of the usercontrol buttons or textbox work or respond, but the titlebar is still dragable.

2nd Issue, if custom content is too wide, the min/max/close buttons are covered up and unusable. Example of Image covering up titlebar buttons

Edit: On further testing, controls are ONLY interactive if they have a min/max/close button behind them (eg, when the window is very narrow), but become unresponsive after window is widened. Draggability is inconsistent, sometimes it works, sometimes it doesn't. the controls work

dotMorten commented 2 years ago

I've decided to deprecate and ultimately remove the xaml titlebar APIs - use the Window.SetTitleBar( ... ) WinUIEx provides instead. Wrt interactive content, there are some APIs for allowing this in the AppWindow class, but I've found them to be quite unpredictable an essentially unusable.

AlexanderBlackman commented 2 years ago

No worries, I guess that's to expected when the official sdk finally provides the formerly missing features WinUIEx filled in.