This is a migrated thread and some comments may be shown as answers.

Restore down after maximized

1 Answer 21 Views
Window
This is a migrated thread and some comments may be shown as answers.
Edo Cof
Top achievements
Rank 1
Edo Cof asked on 18 Apr 2010, 06:39 AM
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?


1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 21 Apr 2010, 12:41 PM
Hi Matjaz,

 I logged this issue in PITS. You could track its progress there. Your Telerik points were updated.

Sincerely yours,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Edo Cof
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or