Hello, I have a Silverlight 4 RIA services project that I'm working on and I'm unable to validate a Child Windows text input. I have a text box such as this one:
<TextBox Height="23" Name="txtSummary" Width="Auto" Grid.Row="2" Grid.Column="4" Text="{Binding DocumentView.Summary, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True}"/>
The DocumentView.Summary value is obtained from my View Model:
public DocumentSubmittedView DocumentView
{
get { return _DocumentView; }
set
{
if (_DocumentView != value)
{
_DocumentView = value;
OnPropertyChanged("DocumentView");
}
}
}
And DocumentSubmittedView is its own Custom Entity class:
namespace Data.Model.Entities {
public class DocumentSubmittedView {
[Key]
public int DocID { get; set; }
[Required(ErrorMessage = "Summary Required")]
public string Summary { get; set; }
}
}
Is there any reason why I'm unable to get any type of Error Validation message with the above information?
Thanks.