public RegistrationForm() { InitializeComponent(); // Set the DataContext of this control to the // Registration instance to allow for easy binding. this.DataContext = this.registrationData; }