.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 Senior Software Developer for Red Cedar Solutions Group in Okemos, Michigan. 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 [email protected].

comments powered by Disqus

Featured

  • Microsoft Highlights Visual Studio Live! Event Lineup and Longtime Developer Community Role

    A Microsoft MVP Blog post on Visual Studio Live!'s longevity arrives as the 2026 conference series continues with upcoming stops at Microsoft HQ, San Diego and Orlando.

  • Using Local AI to Cut Copilot Usage-Based Billing Shock

    After being gobsmacked by the new billing plan using almost all my monthly credits in one or two days, I tried pushing some Copilot-style coding work onto local models in VS Code. What I found was less "free AI" and more "pick your pain": cloud charges on one side, heavy local resource use and long waits on the other.

  • .NET 11 Preview 5 Focuses on Performance, Productivity and Safer Code

    .NET 11 Preview 5 focuses on under-the-hood runtime performance gains, streamlined APIs and language features that reduce boilerplate, plus built‑in security checks and incremental ASP.NET Core and EF Core improvements aimed at everyday developer productivity.

  • VS Code 1.124 Focuses on Agent Autonomy and Parallel Sessions

    Microsoft's June 2026 VS Code update turns on Autopilot by default and adds background sending for agent sessions.

Subscribe on YouTube