I have a few Windows. On window close, i store through RIA left, top, width, height and WindowState properties.
The next time that window is showned, i read those values and set it.
|Window.Left = GetDoubleSett("left", 100.0);
|Window.Top = GetDoubleSett("top", 100.0);
|Window.Width = GetDoubleSett("width", 400.0);
|Window.Height = GetDoubleSett("height", 300.0);
|Window.WindowState = GetEnumSett<Telerik.Windows.Controls.WindowState>("WindowState", Telerik.Windows.Controls.WindowState.Normal);
So far so good.
Now if state is Maximized, my window is Maximized, but when i want it to restore down, those left, top, width and height is forgotten.
The window behaved like any of those properties was set.
I look properties after last line execute and the left, width, ... properties are set to fit maximize. Ok, of course.
But if i manually resize window and then maximized and restore down, the appropiate (left, top, ...) are set.
How to achieve this in code?