I am Using XamMaskedEditor and ValueConstraint like this :
<igEditors:XamMaskedEditor
x:Name="txtUserName"
IsEnabled="{Binding Path=IsEditable}" Grid.Column="1" Grid.Row="0" VerticalAlignment="Top" HorizontalAlignment="Stretch" Margin="0"
DataContext="{Binding Company}" EditModeValidationError="txtUserName_EditModeValidationError"
>
<igEditors:XamMaskedEditor.ValueConstraint>
<igEditors:ValueConstraint RegexPattern="^(?=.*[0-9]+.*)(?=.*[a-zA-Z]+.*)[0-9a-zA-Z]{6,}$" MinLength="6"/>
</igEditors:XamMaskedEditor.ValueConstraint>
</igEditors:XamMaskedEditor>
I am having two queries
1. How to make this textbox as Password textBox as there is no property like PasswordChar="*" as in simple WPF controls.
2. How to change the title of Error messageBox in EditModeValidationError
private void txtUserName_EditModeValidationError(object sender, Infragistics.Windows.Editors.Events.EditModeValidationErrorEventArgs e)
{
e.ErrorMessage= "The password must contain at least one letter and one number ";
}
mittalamit said: 1. How to make this textbox as Password textBox as there is no property like PasswordChar="*" as in simple WPF controls.
mittalamit said:2. How to change the title of Error messageBox in EditModeValidationError