Hi,
I have a RadDataForm using Windows8Theme (although the theme doesn't seem to matter) with the following definition:
The result is the attached image. Notice how username and e-mail fields are of a different size than the other field.
Could you kindly shed some light to this?
Regards,
Daryl
I have a RadDataForm using Windows8Theme (although the theme doesn't seem to matter) with the following definition:
<
telerik:RadDataForm
x:Name
=
"radUserForm"
Grid.Row
=
"0"
AutoGenerateFields
=
"False"
ItemsSource
=
"{Binding Path=UsersList}"
>
<
telerik:RadDataForm.ReadOnlyTemplate
>
<
DataTemplate
>
<
StackPanel
>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding AD_Username, Mode=OneWay}"
Label
=
"AD Username"
IsEnabled
=
"False"
>
<
telerik:DataFormDataField.Content
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding Source={StaticResource ResourceKey=SysUsersList}}"
DisplayMemberPath
=
"USER_NAME"
SelectedValuePath
=
"USER_ID"
SelectedValue
=
"{Binding AD_Username}"
IsEnabled
=
"False"
/>
</
telerik:DataFormDataField.Content
>
</
telerik:DataFormDataField
>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Username, Mode=OneWay}"
Label
=
"Username"
IsEnabled
=
"False"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding Email, Mode=OneWay}"
Label
=
"E-Mail"
IsEnabled
=
"False"
/>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding ProfileId, Mode=OneWay}"
Label
=
"Profile"
IsEnabled
=
"False"
>
<
telerik:DataFormDataField.Content
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding Source={StaticResource ResourceKey=ProfilesList}}"
DisplayMemberPath
=
"ProfileName"
SelectedValuePath
=
"Id"
SelectedValue
=
"{Binding ProfileId}"
IsEnabled
=
"False"
/>
</
telerik:DataFormDataField.Content
>
</
telerik:DataFormDataField
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadDataForm.ReadOnlyTemplate
>
<
telerik:RadDataForm.EditTemplate
>
<
DataTemplate
>
<
StackPanel
>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding AD_Username, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Label
=
"AD Username"
IsEnabled
=
"True"
>
<
telerik:DataFormDataField.Content
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding Source={StaticResource ResourceKey=SysUsersList}}"
DisplayMemberPath
=
"USER_NAME"
SelectedValuePath
=
"USER_ID"
SelectedValue
=
"{Binding AD_Username}"
IsEnabled
=
"True"
/>
</
telerik:DataFormDataField.Content
>
</
telerik:DataFormDataField
>
<
telerik:DataFormDataField
Label
=
"Username"
IsEnabled
=
"True"
DataMemberBinding
=
"{Binding Username, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
/>
<
telerik:DataFormDataField
Label
=
"E-Mail"
IsEnabled
=
"True"
DataMemberBinding
=
"{Binding Email, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
/>
<
telerik:DataFormDataField
DataMemberBinding="{Binding ProfileId,
Mode
=
TwoWay
,
UpdateSourceTrigger
=
PropertyChanged
,
ValidatesOnNotifyDataErrors
=
True
,
NotifyOnValidationError
=
True
}"
Label
=
"Profile"
IsEnabled
=
"True"
>
<
telerik:DataFormDataField.Content
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding Source={StaticResource ResourceKey=ProfilesList}}"
DisplayMemberPath
=
"ProfileName"
SelectedValuePath
=
"Id"
SelectedValue
=
"{Binding ProfileId}"
IsEnabled
=
"True"
/>
</
telerik:DataFormDataField.Content
>
</
telerik:DataFormDataField
>
<
telerik:DataFormDataField
Label
=
"Password"
>
<
PasswordBox
MaxLength
=
"50"
controls:PasswordBoxAssistant.BindPassword
=
"True"
controls:PasswordBoxAssistant.BoundPassword="{Binding
Path
=
PasswordString
,
Mode
=
TwoWay
,
UpdateSourceTrigger
=
PropertyChanged
,
ValidatesOnNotifyDataErrors
=
True
}" />
</
telerik:DataFormDataField
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadDataForm.EditTemplate
>
<
telerik:RadDataForm.NewItemTemplate
>
<
DataTemplate
>
<
StackPanel
>
<
telerik:DataFormDataField
DataMemberBinding
=
"{Binding AD_Username, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Label
=
"AD Username"
IsEnabled
=
"True"
>
<
telerik:DataFormDataField.Content
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding Source={StaticResource ResourceKey=SysUsersList}}"
DisplayMemberPath
=
"USER_NAME"
SelectedValuePath
=
"USER_ID"
SelectedValue
=
"{Binding AD_Username}"
IsEnabled
=
"True"
/>
</
telerik:DataFormDataField.Content
>
</
telerik:DataFormDataField
>
<
telerik:DataFormDataField
Label
=
"Username"
IsEnabled
=
"True"
DataMemberBinding
=
"{Binding Username, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
/>
<
telerik:DataFormDataField
Label
=
"E-Mail"
IsEnabled
=
"True"
DataMemberBinding
=
"{Binding Email, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}"
/>
<
telerik:DataFormDataField
Label
=
"Password"
>
<
PasswordBox
MaxLength
=
"50"
controls:PasswordBoxAssistant.BindPassword
=
"True"
controls:PasswordBoxAssistant.BoundPassword="{Binding
Path
=
PasswordString
,
Mode
=
TwoWay
,
UpdateSourceTrigger
=
PropertyChanged
,
ValidatesOnNotifyDataErrors
=
True
,
NotifyOnValidationError
=
True
}" />
</
telerik:DataFormDataField
>
<
telerik:DataFormDataField
DataMemberBinding="{Binding ProfileId,
Mode
=
TwoWay
,
UpdateSourceTrigger
=
PropertyChanged
,
ValidatesOnNotifyDataErrors
=
True
,
NotifyOnValidationError
=
True
}"
Label
=
"Profile"
IsEnabled
=
"True"
>
<
telerik:DataFormDataField.Content
>
<
telerik:RadComboBox
ItemsSource
=
"{Binding Source={StaticResource ResourceKey=ProfilesList}}"
DisplayMemberPath
=
"ProfileName"
SelectedValuePath
=
"Id"
SelectedValue
=
"{Binding ProfileId}"
IsEnabled
=
"True"
/>
</
telerik:DataFormDataField.Content
>
</
telerik:DataFormDataField
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadDataForm.NewItemTemplate
>
</
telerik:RadDataForm
>
The result is the attached image. Notice how username and e-mail fields are of a different size than the other field.
Could you kindly shed some light to this?
Regards,
Daryl