<NavigationControls:Page x:Class="Itenso.Community.StringResources.SampleApplication.MediaPlayerPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:NavigationControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" xmlns:app="clr-namespace:Itenso.Community.StringResources.SampleApplication" Title=".NET String Resources"> <NavigationControls:Page.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <app:AppDictionary /> <app:MediaPlayerDictionary /> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </NavigationControls:Page.Resources> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <TextBlock Grid.Row="0" Grid.Column="0" Margin="5" Text="{StaticResource MediaPlayerStrings.ApplicationInfoLabel}" /> <TextBlock Grid.Row="0" Grid.Column="1" Margin="5" Text="{StaticResource AppStrings.ApplicationInfo}" /> <TextBlock Grid.Row="1" Grid.Column="0" Margin="5" Text="{StaticResource MediaPlayerStrings.CurrentCultureLabel}" /> <TextBlock Grid.Row="1" Grid.Column="1" Margin="5" Text="{Binding CurrentCultureName}" /> <TextBlock Grid.Row="2" Grid.Column="0" Margin="5" Text="{StaticResource MediaPlayerStrings.StatusNameLabel}" /> <ListBox Grid.Row="2" Grid.Column="1" Margin="5" MinWidth="150" ItemsSource="{Binding StatusItems}" SelectedItem="{Binding Status, Mode=TwoWay}" /> <TextBlock Grid.Row="3" Grid.Column="0" Margin="5" Text="{StaticResource MediaPlayerStrings.SelectedStatusNameLabel}" /> <TextBlock Grid.Row="3" Grid.Column="1" Margin="5" Text="{Binding Status}" /> <TextBlock Grid.Row="4" Grid.Column="0" Margin="5" Text="{StaticResource MediaPlayerStrings.SelectedStatusValueLabel}" /> <TextBlock Grid.Row="4" Grid.Column="1" Margin="5" Text="{Binding Status.Value}" /> <TextBlock Grid.Row="5" Grid.Column="0" Margin="5" Text="{StaticResource MediaPlayerStrings.MediaDurationLabel}" /> <TextBlock Grid.Row="5" Grid.Column="1" Margin="5" Text="{Binding MediaDuration, StringFormat={StaticResource MediaPlayerStrings.DurationFormatString}}" /> <TextBlock Grid.Row="6" Grid.Column="0" Margin="5" Text="{StaticResource MediaPlayerStrings.AlternateStatusNameLabel}" /> <ListBox Grid.Row="6" Grid.Column="1" Margin="5" MinWidth="150" ItemsSource="{Binding AlternateStatusItems}" SelectedItem="{Binding AlternateStatus, Mode=TwoWay}"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate> <Image Width="24" Height="24" Margin="5,5,7,5" ToolTipService.ToolTip="{Binding Description}" Source="{Binding Image.Source}" /> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </Grid> </NavigationControls:Page>
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)