I want to change the width of the label part of DataFormDataField. The correct place to edit should be the controls ControlTemplate:
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<!-- Label -->
<
ColumnDefinition
Width
=
"2*"
/>
<!-- Editor -->
<
ColumnDefinition
Width
=
"24"
/>
<!-- ? Icon -->
</
Grid.ColumnDefinitions
>
I want this to be something like:
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"{Binding LabelWidth}"
/>
<!-- LabelWidth = Attached property? -->
<
ColumnDefinition
Width
=
"2*"
/>
<
ColumnDefinition
Width
=
"24"
/>
</
Grid.ColumnDefinitions
>
The width should not be a fix value in the ControlTemplate. It should be variable so different DataForms can have different label widths. Is that possible?
Johannes