Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Silverlight datafields content alignment

I simple form which have some fields. So i decided to add few DataField with textboxes and labels. Labels manageable and their length can be changed and i need to place my textboxes on the same distance from left side. How can i do this thing?

alt text

like image 227
Ievgen Avatar asked Apr 30 '26 01:04

Ievgen


1 Answers

Try setting

tk:DataField.IsFieldGroup="True"

where tk is the namespace of the toolkit for the DataField; on the parent container of all the field labels you want to be the same width.

like

<Grid tk:DataField.IsFieldGroup="True">...

That will make the labels the same width as the longest label in the FieldGroup.

like image 162
ShaneH Avatar answered May 02 '26 15:05

ShaneH