Пример #1
0
        private void LastFlyplasser()
        {
            var service    = new FlyplassService();
            var flyplasser = service.HentFlyplasser();

            foreach (var flyplass in flyplasser)
            {
                var image = new Image();
                image.Width  = 50;
                image.Height = 50;
                var bitmapImage = new BitmapImage();
                bitmapImage.UriSource = new Uri("airplane.png", UriKind.Relative);
                image.Source          = bitmapImage;
                image.CacheMode       = new BitmapCache();

                FlyplassLayer.AddChild(image, new GeoCoordinate(flyplass.Lengdegrad, flyplass.Breddegrad), new Point(-25, -25));
            }
        }
Пример #2
0
        private void LastFlyplasser()
        {
            var service = new FlyplassService();
            var flyplasser = service.HentFlyplasser();

            foreach (var flyplass in flyplasser)
            {
                var image = new Image();
                image.Width = 50;
                image.Height = 50;
                var bitmapImage = new BitmapImage();
                bitmapImage.UriSource = new Uri("airplane.png", UriKind.Relative);
                image.Source = bitmapImage;
                image.CacheMode = new BitmapCache();

                FlyplassLayer.AddChild(image, new GeoCoordinate(flyplass.Lengdegrad, flyplass.Breddegrad), new Point(-25, -25));
            }
        }
Пример #3
0
 private void MainPage_Loaded(object sender, RoutedEventArgs e)
 {
     var service = new FlyplassService();
     Flyplasser.ItemsSource = service.HentFlyplasser();
 }
Пример #4
0
        private void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            var service = new FlyplassService();

            Flyplasser.ItemsSource = service.HentFlyplasser();
        }