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