.NET Framework 4.5 Multi-Threaded Globalization: Listing 3

Completed MainWindow.xaml.

<Window x:Class="UpdatedCultureInfoDemo.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <StackPanel>
            <TextBlock>User's Preferred Culture</TextBlock>
            <TextBlock Name="UserPreferredCulture" Text="{Binding DisplayName}"></TextBlock>
            <TextBlock>New Thread UI Culture</TextBlock>
            <TextBlock Name="ThreadUICulture" Text="{Binding DisplayName}"></TextBlock>
            <TextBlock>New Task UI Culture</TextBlock>
            <TextBlock Name="TaskUICulture" Text="{Binding DisplayName}"></TextBlock>
            <TextBlock>New AppDomain UI Culture</TextBlock>
            <TextBlock Name="AppDomainUICulture" Text="{Binding DisplayName}"></TextBlock>
        </StackPanel>
    </Grid>
</Window>

About the Author

Eric Vogel is a Sr. Software Developer at Kunz, Leigh, & Associates in Okemos, MI. He is the president of the Greater Lansing User Group for .NET. Eric enjoys learning about software architecture and craftsmanship, and is always looking for ways to create more robust and testable applications. Contact him at vogelvision@gmail.com.