Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1485
Adjust row height when FontSize changes?
posted

Hi,

One of the requirements of my application is to let the user change the font size on the fly.  I user a slider for the font size and the FontSize property of the window is bound to its value.  This works great (almost), since the controls all take that value.The ribbon, labels, the dock manager, everything resizes correctly.  Different story for the XamDataGrid.  The column headers resize correctly (i.e. if I increase the font size, the headers' height increases as well).  This does not work for the actual record rows, however.  The font size increases, but the rows remain at the same height, chopping off the characters displayed in the cells.  I tried setting CellHeight to Auto, but that property only accepts numeric values.

Is there any way to get the record rows to increase their height when the font size changes??

Thanks,
Michel

Parents Reply Children