Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed warning that is no longer valid

...

Code Block
/// <summary>
/// Gets or sets the person.
/// </summary>
[Model]
[Expose("FirstName")]
[Expose("MiddleName")]
[Expose("LastName")]
private Person Person
{
    get { return GetValue<Person>(PersonProperty); }
    set { SetValue(PersonProperty, value); }
}


/// <summary>
/// Register the Person property so it is known in the class.
/// </summary>
public static readonly PropertyData PersonProperty = RegisterProperty("Person", typeof(Person));
Note

This feature is only available in WPF because Silverlight does not provide the ICustomTypeDescriptor or an equivalent feature

Note

Starting with Catel 3.8, this feature has been moved to Fody to support all platforms instead of just WPF.

...