locked
How to remove maximize button from title bar, while retaining minimize and close buttons? RRS feed

  • Question

  • Hi all,

    I guess the title explains my problem pretty much. I thought it should be easy to do it. But I can't find a straight forward way to remove the maximize button. However, the user should be able to minimize the window.

    What's the best way to do it?

    Thanks!

    Tuesday, July 17, 2012 6:30 AM

Answers

  • Hi Vikramster,

    You can use the ResizeMode="NoResize" of the Window will remove both the Maximize and the Minimize button. 

    http://code-in-action.blogspot.in/2009/04/hiding-disabling-maximize-andor.html

    you can go through the above article if it helps you.

    Thanks,


    sankar


    • Edited by sankarann Tuesday, July 17, 2012 7:17 AM
    • Marked as answer by Vikramster Tuesday, July 17, 2012 7:20 AM
    Tuesday, July 17, 2012 6:59 AM

All replies

  • Hi Vikramster,

    You can use the ResizeMode="NoResize" of the Window will remove both the Maximize and the Minimize button. 

    http://code-in-action.blogspot.in/2009/04/hiding-disabling-maximize-andor.html

    you can go through the above article if it helps you.

    Thanks,


    sankar


    • Edited by sankarann Tuesday, July 17, 2012 7:17 AM
    • Marked as answer by Vikramster Tuesday, July 17, 2012 7:20 AM
    Tuesday, July 17, 2012 6:59 AM
  • Hi Sankar, the solution proposed works. However, now I have a different problem. My window is supposed to be non-resizable. After making changes recommended by you, the window has turned into resizable. Now, how can I disable resizing, while allowing user to minimize the window?
    Tuesday, July 17, 2012 7:16 AM
  • Hi again! perhaps I was too quick to reply back. I can now allow the user to minimize, by setting ResizeMode="CanMinimize".

    Thanks!

    Tuesday, July 17, 2012 7:19 AM