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
230
Using DataCells option when doing PerformAutoSize on a field
posted

Hi,

I'm trying to use:

Field.PerformAutoSize(FieldAutoSizeOptions.DataCells, FieldAutoSizeScope.RecordsInView) 

on a Field with a custom CellValuePresenter, but I could do with some guidance as to how this works, as I'm finding that some of my data is being truncated (no doubt due to some padding/margin values within the template). 

Is there a way to shrink the field width to the largest (TextBlock) content AND keep a small amount of custom margin around that?

Regards,

Simon

Parents
  • 54937
    Offline posted

    Do you have an example that shows the problem? Auto sizing based on the cells in view is really just a product of measuring the cells visible within the datapresenter with an infinite width and using the desiredsize width.

Reply Children