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

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,669 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,222 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,118 questions
{count} votes