27 references to PropertyDefinition
PresentationFramework (27)
src\Framework\System\Windows\Markup\BamlCollectionHolder.cs (22)
86
return _resourcesParent != null ? typeof(ResourceDictionary) :
PropertyDefinition
.PropertyType;
132
else if (
PropertyDefinition
.DependencyProperty != null)
139
_reader.SetDependencyValue(dpParent,
PropertyDefinition
.DependencyProperty, Collection);
141
else if (
PropertyDefinition
.AttachedPropertySetter != null)
143
PropertyDefinition
.AttachedPropertySetter.Invoke(null, new object[] { Parent, Collection });
145
else if (
PropertyDefinition
.PropertyInfo != null)
147
PropertyDefinition
.PropertyInfo.SetValue(Parent,
172
else if (
PropertyDefinition
.DependencyProperty != null)
174
_defaultCollection = ((DependencyObject)Parent).GetValue(
PropertyDefinition
.DependencyProperty);
176
else if (
PropertyDefinition
.AttachedPropertyGetter != null)
178
_defaultCollection =
PropertyDefinition
.AttachedPropertyGetter.Invoke(null, new object[] { Parent });
180
else if (
PropertyDefinition
.PropertyInfo != null)
182
if (
PropertyDefinition
.IsInternal)
186
PropertyDefinition
.PropertyInfo,
191
_reader.ThrowException(SRID.ParserCantGetProperty,
PropertyDefinition
.Name);
196
_defaultCollection =
PropertyDefinition
.PropertyInfo.GetValue(
211
(
PropertyDefinition
.DependencyProperty == null ||
PropertyDefinition
.DependencyProperty.ReadOnly) &&
212
(
PropertyDefinition
.PropertyInfo == null || !
PropertyDefinition
.PropertyInfo.CanWrite) &&
213
PropertyDefinition
.AttachedPropertySetter == null)
218
_reader.ThrowException(SRID.ParserReadOnlyNullProperty,
PropertyDefinition
.Name);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (5)
3101
ThrowException(SRID.ParserReadOnlyProp, holder.
PropertyDefinition
.Name);
3193
ThrowException(SRID.ParserNullPropertyCollection, holder.
PropertyDefinition
.Name);
3214
ThrowException(SRID.ParserPropertyCollectionClosed, holder.
PropertyDefinition
.Name);
3435
element.GetType().ToString(), holder.
PropertyDefinition
.Name), e);
4929
holder.
PropertyDefinition
.DependencyProperty, ref isMarkupExtension);