WPF prevent dynamic grid contents from stretching beyond parent size -


have usercontrol must never exceed 700px in width. have set it's maxwidths 700px.

inside grid - 3 columns. first , second column have labels, third column input fields. label contents dynamic based on language.

what trying let input fields in column 2 wide possible once labels in column 0 , 1 contents dynamically when control loaded.

i've set:

1) minimum width on column 2 make sure input fields don't hidden if labels in column 0 , 1 wide.

2) set column 2 width="*" let input fields use width available when labels set.

3) columns 0 , 1 width="auto" let them grow needed accommodate labels.

now have problem - if either column 0 or 1 gets text long, entire gird starts expanding beyond maximum size of it's container, , third column gets cut off. there way stop that, without setting maxwidth on columns 0 , 1?

no, not really.

if don't want labels cut off , don't want grid expand passed parent, 2 options set max width on columns 0 , 1 or set max width on labels in columns 0 , 1 , set text in labels wrap. otherwise, going clipped or overlapped.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -