I'm trying to have the map zoom in on startup with the ZoomToResolution(geometry, MapPoint) method. It worked at first, but then failed when I also set a maximum zoom out using the ConstrainExtentBehavior (which I'm doing programmatically). I'm setting all this after the map layers are initialized. The map will center on the MapPoint, but the extent will be zoomed way out, as set in the behavior.
The ZoomToResolution only fails if I have a tiled map service (e.g., the ESRI world street map) in the map. If I only have a dynamic map service, it zooms in fine.
I've tried reversing the order in which the ZoomToResolution and ConstrainExtentBehavior are applied, with same results. I need to set the behavior programmatically because I don't know the envelope until runtime. Can anyone suggest any workarounds?