2012-11-15 26 views
7

我擁有DateTime屬性。 這勢必一個文本框與Metro(Windows應用商店應用程序)XAML中的日期時間格式

<TextBlock Grid.Column="1" Grid.Row="0" Text="{Binding StartDateString, Mode=TwoWay}" x:Name="date" /> 

在WPF是可能的格式化的語法如下

<TextBlock Grid.Column="1" Grid.Row="0" Text="{Binding StartDateString, FormatString="dd.mm.yyyy" Mode=TwoWay}" x:Name="date" /> 

在地鐵應用程序(WinRT的... Windows應用商店的應用程序的日期時間輸出.. 。它是如何被調用的?),FormatString屬性是不可能的。

是否有另一種方法來執行xaml文件中的格式?

回答

相關問題