Restore down after maximized

2 posts, 0 answers
  1. Edo Cof
    Edo Cof avatar
    47 posts
    Member since:
    Feb 2006

    Posted 18 Apr 2010 Link to this post

    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?

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Apr 2010 Link to this post

    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.
Back to Top