18 references to PropertyDescriptor
System.Windows.Forms.Design (18)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (5)
66string newItem = PropertyDescriptor.Converter.ConvertToString(TypeDescriptorContext, CultureInfo.CurrentCulture, standardValue)!; 160bool converterReadOnly = !PropertyDescriptor.Converter.CanConvertFrom(TypeDescriptorContext, typeof(string)); 164PropertyDescriptor.Converter.GetStandardValuesSupported(TypeDescriptorContext) && 165PropertyDescriptor.Converter.GetStandardValuesExclusive(TypeDescriptorContext); 228_editor = PropertyDescriptor.GetEditor<UITypeEditor>();
System\ComponentModel\Design\DesignerActionPanel.PropertyLine.cs (10)
29protected ITypeDescriptorContext TypeDescriptorContext => _typeDescriptorContext ??= new TypeDescriptorContext(ServiceProvider, PropertyDescriptor, _actionList!); 52if (!PropertyDescriptor.PropertyType.IsAssignableFrom(valueType)) 54if (PropertyDescriptor.Converter is not null) 57if (!PropertyDescriptor.Converter.CanConvertFrom(_typeDescriptorContext, valueType)) 59ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_CouldNotConvertValue, newValue, PropertyDescriptor.PropertyType)); 64newValue = PropertyDescriptor.Converter.ConvertFrom(_typeDescriptorContext, CultureInfo.CurrentCulture, newValue); 72PropertyDescriptor.SetValue(_actionList, newValue); 74Value = PropertyDescriptor.GetValue(_actionList); 85ActionPanel.ShowError(string.Format(SR.DesignerActionPanel_ErrorSettingValue, newValue, PropertyDescriptor.Name, e.Message)); 100Value = PropertyDescriptor.GetValue(info.List);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (3)
122protected virtual bool IsReadOnly() => IsReadOnlyProperty(PropertyDescriptor); 177TypeConverter converter = PropertyDescriptor.Converter; 286protected override void OnValueChanged() => EditControl!.Text = PropertyDescriptor.Converter.ConvertToString(TypeDescriptorContext, Value);