This project is read-only.


CaseConverter backward conversions


<p>The CaseConverter does not support backward conversions, so it&#39;s not possible, for example, to do this:</p> <p>&nbsp;</p> <p> &lt;TextBox Text=&quot;{Binding SomeProperty, Converter={CaseConverter Upper}}&quot;/&gt;</p> <p>&nbsp;</p> <p>and have all values *sent* to SomeProperty in upper case. Instead, all values *from* SomeProperty will be displayed in upper case.</p> <p>&nbsp;</p> <p>I need to think about whether it makes sense to allow the casing to be specified in either direction. Much like the DateTimeConverter has TargetKind and SourceKind, perhaps it makes sense to have TargetCasing and SourceCasing. Casing could become a pseudonym to set both target and source.</p>
Closed Apr 12, 2012 at 8:22 PM by