|
|
@ -574,6 +574,14 @@ namespace Perspex |
|
|
PriorityValue v; |
|
|
PriorityValue v; |
|
|
IDescription description = source as IDescription; |
|
|
IDescription description = source as IDescription; |
|
|
|
|
|
|
|
|
|
|
|
if (!this.IsRegistered(property)) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new InvalidOperationException(string.Format( |
|
|
|
|
|
"Property '{0}' not registered on '{1}'", |
|
|
|
|
|
property.Name, |
|
|
|
|
|
this.GetType())); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!this.values.TryGetValue(property, out v)) |
|
|
if (!this.values.TryGetValue(property, out v)) |
|
|
{ |
|
|
{ |
|
|
v = this.CreatePriorityValue(property); |
|
|
v = this.CreatePriorityValue(property); |
|
|
|