Sales of office buildings in Germany this year are on track to hit their highest level since 2007, but concerns are increasing that the country’s slowing economy will put a damper on deals.

One test case is Germany’s sixth-tallest skyscraper, Trianon tower, in the financial district of Frankfurt.

A venture of Madison International Realty and...