Hide "TitleBarMinMaxCloseContainer" #8425
-
Hello, as currently not possible to hide maximize/minimize button I was using this:
still nothing. Any Ideas? It's possible to navigate through VisualTreeHelper in code behind to the ContentControl? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It would be nice to know precisely what you are doing here. The standard title bar removes these buttons without issue. Microsoft.UI.Windowing.AppWindowTitleBar.ExtendsContentIntoTitleBar removes these buttons without issue. It is only Microsoft.UI.Xaml.Window.ExtendsContentIntoTitleBar that ignores the window style. So it is possible, the issue is that one of the methods to extend the content into the title bar does a poor job of mirroring the style set on the window, and the use of AppWindowTitleBar is the recommended method, assuming there are no bugs. |
Beta Was this translation helpful? Give feedback.
-
I cleared bin and obj folder now after rebuilding the project WindowManager.Get(this).IsMinimizable = false; |
Beta Was this translation helpful? Give feedback.
It would be nice to know precisely what you are doing here.
The standard title bar removes these buttons without issue.
Microsoft.UI.Windowing.AppWindowTitleBar.ExtendsContentIntoTitleBar removes these buttons without issue.
It is only Microsoft.UI.Xaml.Window.ExtendsContentIntoTitleBar that ignores the window style.
So it is possible, the issue is that one of the methods to extend the content into the title bar does a poor job of mirroring the style set on the window, and the use of AppWindowTitleBar is the recommended method, assuming there are no bugs.