Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: DataGrid DateTime Localization

$
0
0
Okay i found a problem...

<xcdg:Column Title="Departure" FieldName="Departure" DisplayMemberBinding="{Binding Departure}"
                                 CellHorizontalContentAlignment="Center" CellVerticalContentAlignment="Center">
                        <xcdg:Column.CellContentTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding StringFormat=d}" />
                            </DataTemplate>
                        </xcdg:Column.CellContentTemplate>
                    </xcdg:Column>
If I use the CellContent and i only want to show the date with StringFormat=d the localization doesnt work. If i remove the CellContentTemplate it works. But since the DisplayMemberBinding ignores the StringFormat I have to do it this way.

But how can i get the localization to work?

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>