Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the title bar from a window but keep the border

Tags:

wpf

I tried setting WindowStyle="None" in XAML but that makes the Window completely borderless. I need a Window that does not have a title bar, which prevent user from moving it. But still has border so it still looks like a Window :)

like image 307
sean717 Avatar asked Jan 18 '12 22:01

sean717


People also ask

Is a window with borders and a title bar?

The title bar is the area at the top of a window and it contains items such as the close/minimize/maximize buttons, and the name of the application that is open. Borders. The borders are the frames around the edge of the window. These consist of the top, bottom, right and left sides of the window.

What are the different options on the title bar of a window?

Title bars contain at least three small buttons that minimize, maximize or restore, and close the window associated with the title bar. Title bars also contain a context-sensitive Help button.

What is the title bar of a window called?

A title bar is a graphical user interface (GUI) component of a software application or Web page. It holds related metadata and is used to define the name of a window, software or visible interface. A title bar is also known as a titlebar.


1 Answers

WindowStyle="None" does not remove the border by default, you must allow resizing (ResizeMode = CanResize / CanResizeWithGrip) and forbid transparency (AllowsTransparency="False") though as far as i know.

like image 180
H.B. Avatar answered Oct 02 '22 22:10

H.B.