Question about simple action

I’ve started reading tutorials since I’m trying to build a little prototype for a WP7 application for school and noticed the simple action tutorial. It was easy to follow since I could copy the coding.

link

Now the problem is I actually don’t understand the coding and was wondering how to add a ‘title’ and extra button (so you can have an ‘Ok’ and a ‘Cancel’ button).

Example:

I’ve tried a lot of different things and trying to break down the code step by step but I’ve never really worked with this type of coding before. Does anyone maybe know some extra lines of code that would make that action allow me to add a title and another button to it?