# Tutorial : Creating a Custom Window in WPF

**URL:** <https://forum.kirupa.com/t/tutorial-creating-a-custom-window-in-wpf/316016>\
**Category:** programming\
**Created:** [November 10, 2010, 10:27am UTC](https://forum.kirupa.com/t/tutorial-creating-a-custom-window-in-wpf/316016 "2010-11-10T10:27:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![infofana](https://avatars.discourse-cdn.com/v4/letter/i/848f3c/32.png) [@infofana](https://forum.kirupa.com/u/infofana)\
**Post date:** [November 10, 2010, 10:27am UTC](https://forum.kirupa.com/t/tutorial-creating-a-custom-window-in-wpf/316016/1 "2010-11-10T10:27:58Z")

</div>

Hello everybody, hello Kirupa!

I found some excellent tutorials on custom windows on this website 🙂

Unfortunately, I’m having a weird problem with the maximizing of the custom window ☹

I’m working with multi screens (3), and when I use the command

```auto
this.WindowState = WindowState.Maximized;

```

my custom window get maximized in a weird way :  
I can see small parts of my custom window on my other screens.

Here’s my custom window in normal state :  
 ![](http://www.kirupa.com/forum/attachment.php?attachmentid=52818&stc=1&d=1289384799)

And Here is my custom window in maximized state :  
 ![](http://www.kirupa.com/forum/attachment.php?attachmentid=52817&stc=1&d=1289384614)  
We can see that it display itself on the other screen as well.

Do you have a idea why?  
I also have performance issues in maximized state only, and I think it’s maybe the same problem.

I uploaded the project I’m working on, if you want to try on your computer.

Thank you for your answers 🙂
