changed AfterEndInit handler to AfterProperties because mono only calls AfterEndInit if widget class implements ISupportInitialize