コード例 #1
0
 /// <summary>
 /// Gets the default value for a property.
 /// </summary>
 /// <param name="property">The property.</param>
 /// <returns>The default value.</returns>
 private object GetDefaultValue(PerspexProperty property)
 {
     if (property.Inherits && this.inheritanceParent != null)
     {
         return(this.inheritanceParent.GetValue(property));
     }
     else
     {
         return(property.GetDefaultValue(this.GetType()));
     }
 }