You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private void ValidateFeatureLevel(FeatureLevel featureLevel)
{
const string propertyKey = "SelectedFeatureLevel";
if (SelectedAdapterInfo.Adapter != null)
{
var isSupported = Device.IsSupportedFeatureLevel(SelectedAdapterInfo.Adapter, featureLevel);
if (isSupported == false)
{
/* Update the collection in the dictionary returned by the GetErrors method */
if (!validationErrors.ContainsKey(propertyKey))
{
validationErrors.Add(propertyKey, "This feature level is not supported on current video adapter");
}
}
else if (validationErrors.ContainsKey(propertyKey))
{
/* Remove all errors for this property */
validationErrors.Remove(propertyKey);
}
RaisePropertyChangedByName("HasErrors");
RaiseErrorsChanged(propertyKey);
}
}
But as A result I see only first char of validation string:
Could you please help me and say why this happening?
The text was updated successfully, but these errors were encountered:
I am using INotifyDataErrorInfo interface with MA ValidationErrorTemplate like this:
And use it like this:
And validating property:
But as A result I see only first char of validation string:
Could you please help me and say why this happening?
The text was updated successfully, but these errors were encountered: