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