I have seen a few examples of how to do this with winforms but have been unable to get it to work in wpf as a wpf TabItem does not have a definition for Controls. Here is the code that I'm using right now, which does not work.
TabItem ti = rep1Tab;
var controls = ti.Controls;
foreach (var control in controls)
{
//do stuff
}