In general, you follow the same steps to create and use a visual extension that you do to create a nonvisual extension:
Step 1: Decide on a feature to implement.
Step 2: Define the classes and functions in the extension.
Step 3: Declare visual classes and global functions.
Step 4: Implement native classes.