Live Chat Icon For mobile
Live Chat Icon

How do I create a Borderless Window in WPF ?

To make the window display without this gray border, you need to set the ‘ResizeMode’ property of the window to ’NoResize’.

<Window x:Class='BorderlessWindow.Window1'
 Title='BorderlessWindow' Height='200' Width='200' 
 Background='White' WindowStyle='None' ResizeMode='NoResize'>
 <Border Padding='5' BorderBrush='#feca00' 
	 BorderThickness='3' Width='150' Height='150'>
 <TextBlock>Learn WPF!</TextBlock>

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.