I\'m working on a WPF application and am trying to add a custom control as TabItems programmatically to a TabControl. I create a Grid and place the custom control inside th