A tailored spirooxazine dimer as a photoswitchable binding tool.