I’m trying to do databinding on a Text property but I want it to show all in lower case
Can I do something in xaml to get HeaderTitle to display the Title property in lower case?
<TextBlock x:Name="HeaderTitle" Text="{Binding Title}" />
or I have to do HeaderTitle.Text = object.Title.ToLower()?
Writing a Binding.Converter seems like the most direct approach. If you go this route, you could add the converter to a style.
Also, it looks like there is a CharacterCasing property on the TextBox class as of the .NET Framework 4.5. I realize you’re asking about a TextBlock, but you may be able to style the TextBox in such a way that it works for what you need.