Pane size lost when maximize a minimized tab that was previously maximized

4 posts, 0 answers
  1. Etienne
    Etienne avatar
    47 posts
    Member since:
    Sep 2014

    Posted 21 Jan 2015 Link to this post

    Hi,

    I have a docking with some tabPane that I dedock and maximize in a second monitor. When I minimize my application and then maximize it, the tabPane isn't maximized anymore. Is there a way to fix this problem ?

    Thank you,

    Etienne
  2. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 26 Jan 2015 Link to this post

    Hello Etienne,

    This is an expected behavior and it is caused by the default framework behavior of the native WPF Window. The floating Pane is placed in ToolWindow which inherits from RadWidndow and RadWindow is hosted in native WPF Window. So you can observe the same behavior using native WPF Windows - if you maximize a child Window with Owner MainWindow on the second screen and minimize and restore the MainWindow the child Window will get restored to its initial size.

    Hope this helps.

    Regards,
    Kalin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Etienne
    Etienne avatar
    47 posts
    Member since:
    Sep 2014

    Posted 26 Jan 2015 in reply to Kalin Link to this post

    Hello Kalin,

    So is there a way to get the behavior that I expect with RadDocking ?

    Also, I compared with Visual Studio and it's not the same behavior than RadDocking. When the parent window of a maximized child window is minimized and maximized back, the child window is maximized.

    Thank you,

    Etienne
  5. Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 29 Jan 2015 Link to this post

    Hi Etienne,

    You would need to manually implement that behavior. For example to hook to the StateChanged event of the Window and when minimizing the find all of the maximized ToolWindows and the MainWindow is restored to Maximize the needed ToolWindows (you might need to use a Dispatcher). Also note that this might cause flickering (when manually maximizing the ToolWindow).

    Indeed the VisialStudio behaves differently - it behaves differently for the different child windows (test the same scenario with one of the coding child windows).

    Hope this helps.

    Regards,
    Kalin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top