Hi. I work with Visual Studio 2019. I have installed ArcGIS sdk to .NET and WPF. I mount references ArcGIS in my C# WPF Desktop project. I write map code. But when I execute my program, I have a white window with "powered ArcGIS" text on Bottom. But I Don't have map.
If I make GIS project is ok. But I would like create a WFP desktop project.
Have you got solution?
thank
Could you post or attach the rest of the code. What is shown is not enough to determine the problem.
Hi and thank you for your help.
I've solved my problem. It was my firewall that was blocking the map from loading.
On the other hand I want to load a local map. a tpk file. But I have a blank page and no error messages with WPF project with C#.
in my cs file :
Map map = new Map();
Uri uri = new Uri(@"My_Absolute_tpk_file_path");
ArcGISTiledLayer tilLayer = new ArcGISTiledLayer(uri);
map.Basemap.BaseLayers.Add(tilLayer);
MyMapView.Map = map;
in my XAML file
<esri:MapView x:Name="MyMapView">
<esri:Map/>
</esri:MapView>
I'm with Visual Studio 2019 and ArcGIS Runtime 100.7 Thank
Problem is solved. It was my tpk file who was protected.
I post code to load tpk file in WPF project
thank. subject solved