Photochemical and thermal isomerization of a ruthenium(II)-alloxazine complex involving an unusual coordination mode.