public KaartScherm() { this.InitializeComponent(); DataContext = new KaartSchermViewModel(); MapControl1.MapElements.Add(user); //Settings for timer timer.Interval = TimeSpan.FromSeconds(1); timer.Tick += timer_Tick; CenterMap(); RefreshMapLocation(); }