TabControl improvements to make it possible to retrieve the content of a TabItem