I'm looking for a way to enable resizing of the labels height in the grid at run-time.
Does anyone have a code/xaml sample?
Thank you
Hello,
The element you are looking for is the LabelPresenter or the HeaderPresenter.
You can see the default styles for these elements in the DefaultStyles directory in the Infragistics folder and use them as a base for your custome styles.
Hope this helps.
Vlad , thank you for the response.
Small clarification:
I was thinking of acheiving the resizable-height functionality for the header by writing new ControlTemplate, but unfortunately couldn't figure out what control I should write the template for. Is it even possible?
The XamDataGrid exposes the DataRecordSizingMode property which can be set e.g. to IndividuallySizable in order to manually change the height of the DataRecordPresenter elements:
<igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings DataRecordSizingMode="IndividuallySizable" /></igDP:XamDataGrid.FieldLayoutSettings>
However this will not affect the DataRecordPresenter element which is used for the header. If you would like to add this functionality in next releases we encourage you to submit a feature request here
Vlad
To be more clear about it , a good example of the functionality I'm looking for is Excel, where you can drag the bottom border of the row header and resize the height of the row.
Vlad, thank you for the response.
I was actually referering to the next senario:
user drags the bottom border of the header to resize the header in runtime.
One way I was thinking of acheiving this task was to create a ControlTemplate for the DataRecordPresenter where I would use a GridSplitter, but I didn't manage to implement it.
I hope I was more clear this time with the senario.