Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Type Converter in WPF

I have gone through this article but still i am not very much clear about Type Converter and its usage.

http://msdn.microsoft.com/en-us/library/aa970913.aspx

Can anyone please explain in what it is and what can be done with it in WPF.

like image 314
Deepesh Avatar asked Dec 22 '22 07:12

Deepesh


1 Answers

If you have a property that is not of type string, but you need to set it from a XAML attribute, you need to convert the string specified in XAML to the target property type. Hence, type converters.

like image 199
Kent Boogaart Avatar answered Jan 06 '23 11:01

Kent Boogaart