Tutorial : Creating a Custom Window in WPF

Hello everybody, hello Kirupa!

I found some excellent tutorials on custom windows on this website :slight_smile:

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

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

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 :

And Here is my custom window in maximized state :

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 :slight_smile: