mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.7 KiB
28 lines
1.7 KiB
<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=System.Private.CoreLib"> |
|
<StackPanel> |
|
<FrameworkElement.Resources> |
|
<ResourceDictionary> |
|
<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> |
|
</ResourceDictionary> |
|
</FrameworkElement.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> |