Envelope selectedGraphicsExtent = layer.SelectedGraphics.Select(g => g.Geometry.Extent) .Aggregate((result, extent) => extent.Union(result));