27 references to PropertyDefinition
PresentationFramework (27)
System\Windows\Markup\BamlCollectionHolder.cs (22)
80
return _resourcesParent != null ? typeof(ResourceDictionary) :
PropertyDefinition
.PropertyType;
126
else if (
PropertyDefinition
.DependencyProperty != null)
133
_reader.SetDependencyValue(dpParent,
PropertyDefinition
.DependencyProperty, Collection);
135
else if (
PropertyDefinition
.AttachedPropertySetter != null)
137
PropertyDefinition
.AttachedPropertySetter.Invoke(null, new object[] { Parent, Collection });
139
else if (
PropertyDefinition
.PropertyInfo != null)
141
PropertyDefinition
.PropertyInfo.SetValue(Parent,
166
else if (
PropertyDefinition
.DependencyProperty != null)
168
_defaultCollection = ((DependencyObject)Parent).GetValue(
PropertyDefinition
.DependencyProperty);
170
else if (
PropertyDefinition
.AttachedPropertyGetter != null)
172
_defaultCollection =
PropertyDefinition
.AttachedPropertyGetter.Invoke(null, new object[] { Parent });
174
else if (
PropertyDefinition
.PropertyInfo != null)
176
if (
PropertyDefinition
.IsInternal)
180
PropertyDefinition
.PropertyInfo,
185
_reader.ThrowException(nameof(SR.ParserCantGetProperty),
PropertyDefinition
.Name);
190
_defaultCollection =
PropertyDefinition
.PropertyInfo.GetValue(
205
(
PropertyDefinition
.DependencyProperty == null ||
PropertyDefinition
.DependencyProperty.ReadOnly) &&
206
(
PropertyDefinition
.PropertyInfo == null || !
PropertyDefinition
.PropertyInfo.CanWrite) &&
207
PropertyDefinition
.AttachedPropertySetter == null)
212
_reader.ThrowException(nameof(SR.ParserReadOnlyNullProperty),
PropertyDefinition
.Name);
System\Windows\Markup\BamlRecordReader.cs (5)
3046
ThrowException(nameof(SR.ParserReadOnlyProp), holder.
PropertyDefinition
.Name);
3140
ThrowException(nameof(SR.ParserNullPropertyCollection), holder.
PropertyDefinition
.Name);
3161
ThrowException(nameof(SR.ParserPropertyCollectionClosed), holder.
PropertyDefinition
.Name);
3381
element.GetType().ToString(), holder.
PropertyDefinition
.Name), e);
4858
holder.
PropertyDefinition
.DependencyProperty, ref isMarkupExtension);