27 references to PropertyDefinition
PresentationFramework (27)
System\Windows\Markup\BamlCollectionHolder.cs (22)
81return _resourcesParent != null ? typeof(ResourceDictionary) : PropertyDefinition.PropertyType; 127else if (PropertyDefinition.DependencyProperty != null) 134_reader.SetDependencyValue(dpParent, PropertyDefinition.DependencyProperty, Collection); 136else if (PropertyDefinition.AttachedPropertySetter != null) 138PropertyDefinition.AttachedPropertySetter.Invoke(null, new object[] { Parent, Collection }); 140else if (PropertyDefinition.PropertyInfo != null) 142PropertyDefinition.PropertyInfo.SetValue(Parent, 167else if (PropertyDefinition.DependencyProperty != null) 169_defaultCollection = ((DependencyObject)Parent).GetValue(PropertyDefinition.DependencyProperty); 171else if (PropertyDefinition.AttachedPropertyGetter != null) 173_defaultCollection = PropertyDefinition.AttachedPropertyGetter.Invoke(null, new object[] { Parent }); 175else if (PropertyDefinition.PropertyInfo != null) 177if (PropertyDefinition.IsInternal) 181PropertyDefinition.PropertyInfo, 186_reader.ThrowException(nameof(SR.ParserCantGetProperty), PropertyDefinition.Name); 191_defaultCollection = PropertyDefinition.PropertyInfo.GetValue( 206(PropertyDefinition.DependencyProperty == null || PropertyDefinition.DependencyProperty.ReadOnly) && 207(PropertyDefinition.PropertyInfo == null || !PropertyDefinition.PropertyInfo.CanWrite) && 208PropertyDefinition.AttachedPropertySetter == null) 213_reader.ThrowException(nameof(SR.ParserReadOnlyNullProperty), PropertyDefinition.Name);
System\Windows\Markup\BamlRecordReader.cs (5)
3057ThrowException(nameof(SR.ParserReadOnlyProp), holder.PropertyDefinition.Name); 3149ThrowException(nameof(SR.ParserNullPropertyCollection), holder.PropertyDefinition.Name); 3170ThrowException(nameof(SR.ParserPropertyCollectionClosed), holder.PropertyDefinition.Name); 3390element.GetType().ToString(), holder.PropertyDefinition.Name), e); 4871holder.PropertyDefinition.DependencyProperty, ref isMarkupExtension);