Using stylx files in esri runtime

247
1
11-18-2021 02:58 AM
SteveLocke
New Contributor

How can we get Arc Gis Runtime 100.9 to read stylx  files created on Arc Gis Pro 2.8.3

The runtime call is to Esri Load Async fucntion.

Are these versions incomaptible?

All that happens is nothing is returned from the call.#

 

0 Kudos
1 Reply
PreetiMaske
Esri Contributor

Hi,
You can access stylx file created from ArcGIS Pro 2.8.3 using SymbolStyle.OpenAsync() method. 
See https://developers.arcgis.com/net/api-reference/api/netwin/Esri.ArcGISRuntime/Esri.ArcGISRuntime.Sym...

See a working sample that opens a stylx file:
https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/278bdad17a79148e77841efac878908d321631ca/...

```

SymbolStyle ss = await SymbolStyle.OpenAsync("PathToStyleFile");
```

Thanks,

Preeti

0 Kudos