Hi everyone
I have a problem related to the row height. I set it for example to 15 but ActualHeight of the CellControl still 26. Could you help me with that?
Hello Gleb,
I have put together a small sample project in an attempt to reproduce the behavior you are referring to, but I can't say I am seeing the behavior you are reporting. When inspecting the CellControl elements of the XamGrid in my small sample project after setting the RowHeight property to 15, the CellControl.ActualHeight property also returns 15.
One thing I am noticing is that the HeaderCellControl elements are still at an ActualHeight of 26, and so perhaps this is the element that you are inspecting that is returning the "incorrect" height? If so, you can control the header's height by setting the HeaderRowHeight property of the XamGrid.
I am attaching the sample project I used to test this. Please test it on your machine to see if you receive the same results as in your project. My tests were made against version 17.1.20171.1000. If this differs from the version that you are currently using, could you please provide the version that you are testing against?
If the project does show the product feature working correctly, this indicates a possible problem in the code of your application. It will help if you can provide a small, isolated sample application that demonstrates the behavior you are seeing.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
OK, I found the MinimumRowHeight property which doing what I want for rows.
But I could not find the same property for headers, do you have any idea?
Wow, thanks, it helps me, but could I configure the grid to calculate row/header height automatically using the content of the cell?
I am trying to change default style to adjust to my acceptance criteria and I wouldn't to hardcoded this value. Look like if cell content has big height it will not increase the row/header height, what should I do in this case?
I attached your project where I changed some code. I changed a template of the column and set the height of the text block to 50. Without setting RowHeight property everything works fine. I need to set height less then default(26). Could you help me?