I have a button in my dialogbar which is grayout. How do I enable the button?

I added a handler to handle the event of the button being clicked. What else I should do?

Thanks!