27 references to PropertyDefinition
PresentationFramework (27)
System\Windows\Markup\BamlCollectionHolder.cs (22)
82
return _resourcesParent != null ? typeof(ResourceDictionary) :
PropertyDefinition
.PropertyType;
128
else if (
PropertyDefinition
.DependencyProperty != null)
135
_reader.SetDependencyValue(dpParent,
PropertyDefinition
.DependencyProperty, Collection);
137
else if (
PropertyDefinition
.AttachedPropertySetter != null)
139
PropertyDefinition
.AttachedPropertySetter.Invoke(null, new object[] { Parent, Collection });
141
else if (
PropertyDefinition
.PropertyInfo != null)
143
PropertyDefinition
.PropertyInfo.SetValue(Parent,
168
else if (
PropertyDefinition
.DependencyProperty != null)
170
_defaultCollection = ((DependencyObject)Parent).GetValue(
PropertyDefinition
.DependencyProperty);
172
else if (
PropertyDefinition
.AttachedPropertyGetter != null)
174
_defaultCollection =
PropertyDefinition
.AttachedPropertyGetter.Invoke(null, new object[] { Parent });
176
else if (
PropertyDefinition
.PropertyInfo != null)
178
if (
PropertyDefinition
.IsInternal)
182
PropertyDefinition
.PropertyInfo,
187
_reader.ThrowException(nameof(SR.ParserCantGetProperty),
PropertyDefinition
.Name);
192
_defaultCollection =
PropertyDefinition
.PropertyInfo.GetValue(
207
(
PropertyDefinition
.DependencyProperty == null ||
PropertyDefinition
.DependencyProperty.ReadOnly) &&
208
(
PropertyDefinition
.PropertyInfo == null || !
PropertyDefinition
.PropertyInfo.CanWrite) &&
209
PropertyDefinition
.AttachedPropertySetter == null)
214
_reader.ThrowException(nameof(SR.ParserReadOnlyNullProperty),
PropertyDefinition
.Name);
System\Windows\Markup\BamlRecordReader.cs (5)
3066
ThrowException(nameof(SR.ParserReadOnlyProp), holder.
PropertyDefinition
.Name);
3158
ThrowException(nameof(SR.ParserNullPropertyCollection), holder.
PropertyDefinition
.Name);
3179
ThrowException(nameof(SR.ParserPropertyCollectionClosed), holder.
PropertyDefinition
.Name);
3399
element.GetType().ToString(), holder.
PropertyDefinition
.Name), e);
4880
holder.
PropertyDefinition
.DependencyProperty, ref isMarkupExtension);