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. Button sizes become small in a stackpanel

Button sizes become small in a stackpanel

Scheduled Pinned Locked Moved WPF
csharpasp-netcomdata-structures
5 Posts 2 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.
  • V Offline
    V Offline
    Vimalsoft Pty Ltd
    wrote on last edited by
    #1

    Good Day i have buttons and i have defined them like this

    and m gridlayout has the following properties

    and my Page does not have with and height set as i want to cater for different resolutions. if i remove the stackPanel , my buttons bring big nicely , but i need then in a Stackpanel kind of control so that they will be aligned in order , but when i have the stack panel in the , the buttons become small, can anyone help regarding this, below is the example of the image Image Example[^] Thanks

    Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa[at]dotnetfunda.com http://www.Dotnetfunda.com

    A 1 Reply Last reply
    0
    • V Vimalsoft Pty Ltd

      Good Day i have buttons and i have defined them like this

      and m gridlayout has the following properties

      and my Page does not have with and height set as i want to cater for different resolutions. if i remove the stackPanel , my buttons bring big nicely , but i need then in a Stackpanel kind of control so that they will be aligned in order , but when i have the stack panel in the , the buttons become small, can anyone help regarding this, below is the example of the image Image Example[^] Thanks

      Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa[at]dotnetfunda.com http://www.Dotnetfunda.com

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Hi Viswa, Why do you need to use a StackPanel? Generally if you have a fixed layout panel, go with Grid. But anyways, I dont know exactly how KinectTileButton works, but if you specify same size for MaxWidth and MinWidth, or MaxHeight and MinHeight, everything will remain same irrespective of the container. Do let me know if you are looking for something else.

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      Visit My Website-->**

      www.abhisheksur.com
      Also read my book on all ongoing latest technology
      .NET 4.5 Expert Cookbook

      V 1 Reply Last reply
      0
      • A Abhishek Sur

        Hi Viswa, Why do you need to use a StackPanel? Generally if you have a fixed layout panel, go with Grid. But anyways, I dont know exactly how KinectTileButton works, but if you specify same size for MaxWidth and MinWidth, or MaxHeight and MinHeight, everything will remain same irrespective of the container. Do let me know if you are looking for something else.

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        Visit My Website-->**

        www.abhisheksur.com
        Also read my book on all ongoing latest technology
        .NET 4.5 Expert Cookbook

        V Offline
        V Offline
        Vimalsoft Pty Ltd
        wrote on last edited by
        #3

        hi Abhishek i resolved the issue by using a Uniform. Thanks

        Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa[at]dotnetfunda.com http://www.Dotnetfunda.com

        A 1 Reply Last reply
        0
        • V Vimalsoft Pty Ltd

          hi Abhishek i resolved the issue by using a Uniform. Thanks

          Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa[at]dotnetfunda.com http://www.Dotnetfunda.com

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          You mean UniformGrid right. Anyways, good to hear that. :)

          Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


          Visit My Website-->**www.abhisheksur.com Also read my book on all ongoing latest technology .NET 4.5 Expert Cookbook

          V 1 Reply Last reply
          0
          • A Abhishek Sur

            You mean UniformGrid right. Anyways, good to hear that. :)

            Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


            Visit My Website-->**www.abhisheksur.com Also read my book on all ongoing latest technology .NET 4.5 Expert Cookbook

            V Offline
            V Offline
            Vimalsoft Pty Ltd
            wrote on last edited by
            #5

            Correct :) Thanks

            Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa[at]dotnetfunda.com http://www.Dotnetfunda.com

            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