A Value Converter for the BALL Watch Silverlight Contest
Expresssion Blend, Silverlight, Visual Studio 2010 | (0)
A contestant in the BALL Watch Silverlight Contest was working on creating his entry (Due August 5, 2010) and sent me a question on data binding to the day of the week. The watch that he is creating displays the day abbreviated and capitalized and he wanted to use data binding like I showed in this tutorial. Since the Chronograph control exposes a DateTime Date property, he could bind to that and use Date.DayOfWeek property, but that would return values like Monday and Tuesday, not MON and TUE. The solution in this case is to create a value converter and ...