Skip to content

Commit

Permalink
Update xaml-and-custom-classes-for-wpf.md (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboybamo authored May 1, 2024
1 parent ffc0293 commit 0c4a6a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ XAML as implemented in common language runtime (CLR) frameworks supports the abi

Properties must reference a by-value type (such as a primitive), or use a class for type that has either a parameterless constructor or a dedicated type converter that a XAML processor can access. In the CLR XAML implementation, XAML processors either find such converters through native support for language primitives, or through application of <xref:System.ComponentModel.TypeConverterAttribute> to a type or member in backing type definitions

Alternatively, the property may reference an abstract class type, or an interface. For abstract classes or interfaces, the expectation for XAML parsing is that the property value must be filled with practical class instances that implement the interface, or instances of types that derive from the abstract class.
Alternatively, the property may reference an abstract class type, or an interface. For abstract classes or interfaces, the expectation for XAML parsing is that the property value must be filled with concrete class instances that implement the interface, or instances of types that derive from the abstract class.

Properties can be declared on an abstract class, but can only be set on practical classes that derive from the abstract class. This is because creating the object element for the class at all requires a public parameterless constructor on the class.
Properties can be declared on an abstract class, but can only be set on concrete classes that derive from the abstract class. This is because creating the object element for the class at all requires a public parameterless constructor on the class.

### TypeConverter Enabled Attribute Syntax

Expand Down

0 comments on commit 0c4a6a0

Please sign in to comment.