WPF4 Unleashed - how does converting child elements work?

Posted by Kapol on Programmers See other posts from Programmers or by Kapol
Published on 2014-06-05T19:15:47Z Indexed on 2014/06/06 3:39 UTC
Read the original article Hit count: 134

Filed under:
|

In chapter 2 of the book WPF4 Unleashed the author shows an example of how XAML processes type conversion. He states that

<SolidColorBrush>White</SolidColorBrush>

is equivalent to

<SolidColorBrush Color="White"/>

, because a string can be converted into a SolidColorBrush object.

But how is that enough? It doesn't make sense to me. How does XAML know to which property should the value White be assigned?

© Programmers or respective owner

Related posts about wpf

Related posts about xaml