I am deep in the stack of XAML order binding elements.
The order date is displayed, for example. 12/31/2008 12:00:00 a.m.
I want it to be displayed as, for example, "December 31, 2008".
How can i do this? I have seen the https://stackoverflow.com/a/166269/9129/9129/index.html mention StringFormat, but they use multi-binding in ways that I cannot get to work.
Here is a syntax that I would like (this is pseudo-code), just specifying StringFormat where you need it, is it possible somehow?
<StackPanel> <ListView ItemsSource="{Binding Orders}"> <ListView.View> <GridView> <GridViewColumn Header="Order ID" DisplayMemberBinding="{Binding Path=OrderID}" StringFormat="{}{1:dd.MM.yyyy}"/> <GridViewColumn Header="Order Date" DisplayMemberBinding="{Binding Path=OrderDate}"/> </GridView> </ListView.View> </ListView> </StackPanel>
xaml string-formatting
Edward Tanguay Mar 26 '09 at 13:19 2009-03-26 13:19
source share