From a71b912405dfeb0b3516b20ba11f83b29330fa7a Mon Sep 17 00:00:00 2001 From: ClemensF Date: Mon, 9 Oct 2017 18:01:45 +0200 Subject: [PATCH] Version 4.2.0 --- SampleApps/WpfApplication/MainWindow.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SampleApps/WpfApplication/MainWindow.xaml.cs b/SampleApps/WpfApplication/MainWindow.xaml.cs index a6e1d81f..6301684a 100644 --- a/SampleApps/WpfApplication/MainWindow.xaml.cs +++ b/SampleApps/WpfApplication/MainWindow.xaml.cs @@ -80,12 +80,12 @@ namespace WpfApplication private void SeamarksChecked(object sender, RoutedEventArgs e) { - map.Children.Insert(map.Children.IndexOf(mapGraticule), (UIElement)Application.Current.Resources["Seamarks"]); + map.Children.Insert(map.Children.IndexOf(mapGraticule), ((MapViewModel)DataContext).MapLayers.SeamarksLayer); } private void SeamarksUnchecked(object sender, RoutedEventArgs e) { - map.Children.Remove((UIElement)Application.Current.Resources["Seamarks"]); + map.Children.Remove(((MapViewModel)DataContext).MapLayers.SeamarksLayer); } } }