Locarno is the capital of the Locarno district in the Swiss canton of Ticino .
Locarno was the administrative center of the parish of Locarno .