Can't this be done by binding this property to the checkbox?