When I use a layer overlay of type SingleTile in a map view with PreserveScaleAndCenter mode, then the overlay is not shown when the window is created and after the window has been resized. Proper redrawing happens only when some other change is done (e.g., zoom/pan with the mouse).
private void MapView_Loaded(object sender, RoutedEventArgs e)
{
mapView.MapUnit = GeographyUnit.Meter;
mapView.MapResizeMode = MapResizeMode.PreserveScaleAndCenter;
var layersOverlay = new LayerOverlay();
layersOverlay.TileType = TileType.SingleTile;
mapView.Overlays.Add(layersOverlay);
var layer = new InMemoryFeatureLayer();
layer.InternalFeatures.Add(new Feature(new PointShape(100, 100)));
layer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = new PointStyle(PointSymbolType.Diamond, 50, GeoBrushes.Blue);
layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
layersOverlay.Layers.Add(layer);
mapView.CurrentExtent = new RectangleShape(0, 200, 200, 0);
mapView.Refresh();
}
Apparently, this bug was introduced in version 12.3.5.