Ejemplo n.º 1
0
 /// <summary>Validates the selected item.</summary>
 public void Validate()
 {
     IsValid = RequiredType == null ||
               SelectedItem == null ||
               RequiredType.IsAssignableFrom(SelectedItem.GetContentType());
 }