mirror of https://github.com/icsharpcode/ILSpy.git
7 changed files with 56 additions and 10 deletions
@ -0,0 +1,26 @@
@@ -0,0 +1,26 @@
|
||||
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:system="clr-namespace:System;assembly=mscorlib"> |
||||
<StackPanel> |
||||
<StackPanel.Resources> |
||||
<DataTemplate x:Key="key" DataType="{}{http://planetsNS}Planet"> |
||||
<StackPanel Orientation="Horizontal"> |
||||
<TextBlock Width="100" Text="{Binding Path=Element[{http://planetsNS}DiameterKM].Value}" /> |
||||
<TextBlock Width="100" Text="{Binding Path=Attribute[Name].Value}" /> |
||||
<TextBlock Text="{Binding Path=Element[{http://planetsNS}Details].Value}" /> |
||||
<TextBlock Text="{Binding Source={x:Static system:DateTime.Now}, StringFormat=Date: {0:dddd, MMMM dd}}" /> |
||||
<TextBlock Text="{Binding Source={x:Static system:DateTime.Now}, StringFormat=Time: {0:HH:mm}}" /> |
||||
</StackPanel> |
||||
</DataTemplate> |
||||
</StackPanel.Resources> |
||||
<TextBlock Text="{Binding Path=ActualWidth, StringFormat=Window width: {0:#,#.0}}" /> |
||||
<TextBlock Text="{Binding Path=ActualHeight, StringFormat=Window height: {0:C}}" /> |
||||
<WrapPanel Margin="10"> |
||||
<TextBlock Text="Width: " /> |
||||
<TextBlock Text="{Binding ActualWidth, StringFormat={}{0:#,#.0}}" /> |
||||
<StackPanel Margin="10"> |
||||
<TextBlock Text="{Binding Source={x:Static system:DateTime.Now}, ConverterCulture=de-DE, StringFormat=German date: {0:D}}" /> |
||||
<TextBlock Text="{Binding Source={x:Static system:DateTime.Now}, ConverterCulture=en-US, StringFormat=American date: {0:D}}" /> |
||||
<TextBlock Text="{Binding Source={x:Static system:DateTime.Now}, ConverterCulture=ja-JP, StringFormat=Japanese date: {0:D}}" /> |
||||
</StackPanel> |
||||
</WrapPanel> |
||||
</StackPanel> |
||||
</UserControl> |
Loading…
Reference in new issue