Hi All,
I'm adding feature service to map using ArcPro SDK 2.8. I've observed that that by default 'Clear Cache when session End' option is selected for each layer. Due to this option my data is not displaying properly on map. I tried to turn layer on/off manually or zoom in/out couple if times but still issue remains same.
I don't want to cache any data locally so I used below code to set cache option but UI doesn't change and still 'Clear Cahce..' is selected.
var featureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
featureLayer.SetDisplayCacheType(DisplayCacheType.None);
In SDK 2.7 by default last option 'Don't cache any data locally' was selected so didn't face any issue while displaying data but in 2.8 behavior has changed.
Any idea how to set option 'Don't cache any data locally' from add-in?
-Prashant