Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Disable the Maximize button in WPF

Disable the Maximize button in WPF

Scheduled Pinned Locked Moved WPF
csharpwpftutorial
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    ashwath1979
    wrote on last edited by
    #1

    Hi, Please do let me know about how to disable the maximize button in a WPF application. Thanks in Advance, Ashwath.

    C M P T 4 Replies Last reply
    0
    • A ashwath1979

      Hi, Please do let me know about how to disable the maximize button in a WPF application. Thanks in Advance, Ashwath.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Surely there's a MaximizeButton property on the form, just like there is in winforms ?

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      1 Reply Last reply
      0
      • A ashwath1979

        Hi, Please do let me know about how to disable the maximize button in a WPF application. Thanks in Advance, Ashwath.

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        Assuming you are referring to the Window class... Disabling the Maximize button in WPF[^]

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        C 1 Reply Last reply
        0
        • M Mark Salsbery

          Assuming you are referring to the Window class... Disabling the Maximize button in WPF[^]

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Wow - that's not insane at all.......

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          M 1 Reply Last reply
          0
          • C Christian Graus

            Wow - that's not insane at all.......

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            Yeah gotta wonder why it was left out. But who wants to use the OS windows in WPF anyway :)

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            C 1 Reply Last reply
            0
            • M Mark Salsbery

              Yeah gotta wonder why it was left out. But who wants to use the OS windows in WPF anyway :)

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              True - we always generate a fake title bar so we can style it. Another weird oversight, IMO.

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              1 Reply Last reply
              0
              • A ashwath1979

                Hi, Please do let me know about how to disable the maximize button in a WPF application. Thanks in Advance, Ashwath.

                P Offline
                P Offline
                priyagee
                wrote on last edited by
                #7

                Hi In design u set the code like ResizeMode="CanMinimize"

                1 Reply Last reply
                0
                • A ashwath1979

                  Hi, Please do let me know about how to disable the maximize button in a WPF application. Thanks in Advance, Ashwath.

                  T Offline
                  T Offline
                  Thrash505
                  wrote on last edited by
                  #8

                  I haven't written a post on my blog on disabling both the minimize and maximize button on a WPF window through attached properties in XAML-markup. In the future I will implement disabling the icon as well. For disabling the close button, I see no need for this and believe this to be bad design; therefore it will be unlikely that I will ever implement this functionality unless specifically requested. http://thrash505.wordpress.com/2010/04/19/wpf-window-disable-minimize-and-maximize-buttons-through-attached-properties-from-xaml/

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups