Created
September 13, 2013 01:30
-
-
Save eternaltung/6545906 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Bing.Maps; | |
| using Windows.UI.Xaml; | |
| using Windows.UI.Xaml.Controls; | |
| using Windows.UI.Xaml.Navigation; | |
| namespace MapTest | |
| { | |
| public sealed partial class MainPage : Page | |
| { | |
| public MainPage() | |
| { | |
| this.InitializeComponent(); | |
| bingmap.HomeRegion = "US"; | |
| } | |
| protected override void OnNavigatedTo(NavigationEventArgs e) | |
| { | |
| } | |
| private void Button_Click(object sender, RoutedEventArgs e) | |
| { | |
| switch ((sender as Button).Content.ToString()) | |
| { | |
| case "zh-Hant": | |
| bingmap.Culture = "zh-Hant"; | |
| break; | |
| case "ko": | |
| bingmap.Culture = "ko"; | |
| break; | |
| case "ja": | |
| bingmap.Culture = "ja"; | |
| break; | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment