public MapView() { Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = LanguageControl.GetInstance().lang; this.InitializeComponent(); instance = this; Map.ShapeLayers.Add(walkedPathLayer); zoomToLocation(); flyout = new MapViewSettingsFlyout(this); sightFlyout = new SightInfoFlyout(); turorialViewFlyout = new TutorialViewFlyout(); //flyout.Show(); Uri uri = new Uri("ms-appx:///" + "Assets/agslogo2.png"); Uri uri2 = new Uri("ms-appx:///" + "Assets/VVVLogo.png"); AgsLogo.Source = new BitmapImage(uri); VVVLogo.Source = new BitmapImage(uri2); InfoButton.Icon = new SymbolIcon { Symbol = Symbol.MapPin }; //System.Diagnostics.Debug.WriteLine("Test"); }
public void refresh() { Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = LanguageControl.GetInstance().lang; flyout = new MapViewSettingsFlyout(this); sightFlyout = new SightInfoFlyout(); ResourceLoader rl = new ResourceLoader(); AppbarButton.Label = rl.GetString("AppbarButtonLabel"); InfoButton.Label = rl.GetString("InfoButtonLabel"); TutorialButton.Label = rl.GetString("TutorialButtonLabel"); legendaBezochteBZW.Text = rl.GetString("Legend11"); legendaOnbezochteBZW.Text = rl.GetString("Legend21"); legendaRoute.Text = rl.GetString("Legenda31"); mc.createSights(); }
public static async void promptUserForLanguage(MapViewSettingsFlyout flyout) { MessageDialog msgDialog = new MessageDialog("Welke taal wilt u? What language do you want?", "Taal / Language"); //NL Button UICommand nlButton = new UICommand("NL"); nlButton.Invoked = switchToDutch; msgDialog.Commands.Add(nlButton); //EN Button UICommand enButton = new UICommand("EN"); enButton.Invoked = switchToEnglish; msgDialog.Commands.Add(enButton); //Show message await msgDialog.ShowAsync(); }