You need to create the button in your XAML and hook it up to a callback. Something like:
<Button Click="StartRecord">
In your code-behind your function declaration would look like:
private void StartRecord(object sender, RoutedEventArgs e)
{
// code here
}
Tell your program what you want to do when the button is clicked in there.