Accessing controls inside a ContentControl (RE: title bar customisation) #2111
-
I am wanting to create a custom title bar and even though the new docs go into a lot of detail, specifically Color and transparency in caption buttons, but there are a few problems with it still, specifically with changing themes. I will go repro and report those bugs separately another time, but at the moment I have title bar exhaustion and I just want my app updated and published ASAP I was able to overcome this in my test app by using a FakeMinMaxCloseButtons class. The idea being if Win11 (eg. For the fake window caption buttons I grab the grid from within This whole view can almost be replaced with a single line of
however, by doing this I can't wire up the click events inside this ContentControl. Everything used inside As you can see inside it there is 3 buttons Ideally I'd like to reference the style inside WindowsAppSDK rather than copy it (which is what the current implementation is) so if there is any updates in the future I will have those updates. So the TL;DR; question is, given the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've moved this over to the WinUI repo, someone should be able to help answer your question over there: |
Beta Was this translation helpful? Give feedback.
I've moved this over to the WinUI repo, someone should be able to help answer your question over there:
microsoft/microsoft-ui-xaml#6738