Hi,
We are using custom recordselectors in the XamDataGrid. The Selector style is set based on some logic related to the context. But the different styles needs different Width of the recordSelector, and furthermore are we using localization which also needs different Widths. Are there any way that the RecordSelector can set its Width automatically based on the content of recordSelector.
Best Regards
Dennis
Hello Dennis,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Thank you for your post. I have been looking into it and I can say that the thing you can do is copy the default Style of the DataRecordPresenter, which contains the RecordSelector and DataRecordCellArea controls. Once you do this you can modify the Template, so the width of the RecordSelector is bound to its Content’s Width. You can copy the default Style from here:
C:\Program Files (x86)\Infragistics\2014.1\WPF\DefaultStyles\DataPresenter\DataPresenterAero_Express.xaml file
Please let me know if you have further questions on this matter.
Looking forward for your reply.