I am working on a wpf application and i want to handle windowStateChanged event. I did it like this
if (((Window)sender).WindowState == WindowState.Maximized)
{}
else if (((Window)sender).WindowState == WindowState.Normal)
{}
but whenever i minimize the the window and then maximize it, it come to this(WindowState.Normal) condition. I only want it to come to this condition when i click on minimize button. Any Solution?