Small Extended Window Style without Titlebar

tscholl89 1 Reputation point
2021-03-14T15:15:58.553+00:00

I need the following properties on my WPF Window:

  • [Extended Window Style][1] (because i need the WS_EX_NOACTIVATE attribute)
  • Completely hide the Minimize, Maximize, Close buttons
  • Allowing the window to be as small as about 10 units
  • the Window can not have Windowstyle=None

Setting the Window as a Toolwindow will not allow me to completely hide the close button, (using ~WS_SYSMENU has not effect), but would allow me to set narrow Window Setting the Window as a Singleborderwindow allows me to completely hide titlebar buttons (using ~WS_SYSMENU), but will not allow me to set the window size smaller as 100 units [1]: https://learn.microsoft.com/en-us/windows/win32/winmsg/extended-window-styles

Developer technologies | Windows Presentation Foundation
Developer technologies | .NET | .NET Runtime
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.