I have a WPF app with a single form containing some WPF tabs. Three of the tabs are used to collect data from the user. The last tab has an OK button and when clicked performs some calculations.

How to I pass data from the text boxes on the various tabs to the function located in the buttonclick event? I have the function created. I just need to know how to reference the values from the textboxes on the tabs.