Implementing a custom visibility binding