Search for CanvasButton in Examples, that project may help you:
Edit: Also found: Custom Canvas Control for inspiration