Parameters
- camera
- Camera
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
//Change a map frame's camera settings. //Perform on the worker thread await QueuedTask.Run(() => { //Reference MapFrame MapFrame mf = layout.FindElement("Map Frame") as MapFrame; //Reference the camera associated with the map frame and change the scale Camera cam = mf.Camera; cam.Scale = 100000; //Set the map frame extent based on the new camera info mf.SetCamera(cam); });
Target Platforms: Windows 10, Windows 8.1