Skip to content

Instantly share code, notes, and snippets.

@eternaltung
Created September 13, 2013 01:30
Show Gist options
  • Select an option

  • Save eternaltung/6545906 to your computer and use it in GitHub Desktop.

Select an option

Save eternaltung/6545906 to your computer and use it in GitHub Desktop.
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