Brexit. What Brexit?

Two years ago, the U.K. vote to exit from the European Union set off alarms in the London office market that tenants and investors would flee the city.

But the market is proving to be surprisingly resilient. Last year, investors purchased €77.1 billion ($95 billion) worth of commercial property in the U.K., up from €63.9...