In html one can say width=”20%”. This is not allowed in XAML of course. Does anyone know why that is or is there a way to get percentage value support in XAML?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Grid ColumnDefinitions and RowDefinitions allow for proportional units (in addition to fixed pixels and Auto).
Here are 2 examples:
The first column will be as large as necessary to fit all content in the column. The next column is 20 device-independant pixels wide. The remaining Width of the grid will be divided equally among the remaining columns. (100% / 4 = 25% in each)
This code would divide 4 columns into 10%, 40%, 40%, and 10% of the total Grid Width.