/// <summary> /// Finds a registered property on an object by name. /// </summary> /// <param name="o">The object.</param> /// <param name="name"> /// The property name. If an attached property it should be in the form /// "OwnerType.PropertyName". /// </param> /// <returns> /// The registered property or null if no matching property found. /// </returns> public AvaloniaProperty FindRegistered(AvaloniaObject o, string name) { return(FindRegistered(o.GetType(), name)); }
/// <summary> /// Gets all <see cref="AvaloniaProperty"/>s registered on a object. /// </summary> /// <param name="o">The object.</param> /// <returns>A collection of <see cref="AvaloniaProperty"/> definitions.</returns> public IEnumerable <AvaloniaProperty> GetRegistered(AvaloniaObject o) { Contract.Requires <ArgumentNullException>(o != null); return(GetRegistered(o.GetType())); }