Rocky, a couple of things:

1) please remember to post WPF related items in the WPF forum.
2) when someone gives you code, try the code before asking other questions. For example, rather than speculating that the code won't work with TABS, you can load up the code and determine that yourself.

As far as moving the post..., I'm going to leave this post in this forum because the solution is a C# solution.

If you still need a WPF solution, please post another question in the WPF forum.