Announcing ArcGIS Runtime SDK for .NET 100.11.2 Preview 4 with support for WinUI 3

819
0
06-28-2021 03:38 PM
Labels (1)
MichaelBranscomb
Esri Frequent Contributor
0 0 819

Announcing ArcGIS Runtime SDK for .NET 100.11.2 Preview 4 with support for WinUI 3

 

We are pleased to announce ArcGIS Runtime SDK for .NET 100.11.2 Preview 4 with support for WinUI 3. This release updates the preview of support for ArcGIS Runtime with WinUI 3 to target the recently released Windows App SDK version 0.8.0 (formerly known as Project Reunion).

 

Try out ArcGIS Runtime and WinUI 3

 

#1. Open a browser and go to your ArcGIS Developer dashboard to get your API key.

 

#2. Follow the Microsoft docs Get Started steps to Create a WinUI 3 desktop app for C# and .NET 5.

 

#3. Open the NuGet Package Manager for your new WinUI application project and install package Esri.ArcGISRuntime.WinUI version 100.11.2-preview4.

 

#4. Open MainWindow.xaml.

 

  #4.a. Add a XAML namespace e.g.

 

xmlns:esri="using:Esri.ArcGISRuntime.UI.Controls"

 

  #4.b. Add a map view control

 

<esri:MapView x:Name="MyMapView" />

 

#5. Open MainWindow.xaml.cs

 

  #5.a. Set the ArcGIS API key you created via your Developer dashboard

 

ArcGISRuntimeEnvironment.ApiKey = "<Your_API_key_here>";

 

  #5.b. Create a new map and set the map property of the map view

 

MyMapView.Map = new Map(BasemapStyle.ArcGISChartedTerritory);

 

#6. Run the app to see ArcGIS Runtime and WinUI.

 

The ArcGIS Runtime SDK for .NET sample viewer for WinUI has also been updated to reference this latest Esri.ArcGISRuntime.WinUI preview.

Note: Support for ArcGIS Runtime with WinUI 3 is still in Preview and cannot be used in production at this time.

 

This is an exciting development on the roadmap for Windows app developers and we look forward to any feedback you have on your experience using this preview.

Thanks

The ArcGIS Runtime .NET Team

About the Author
Product Manager - ArcGIS Runtime