Silverlight/WPF UIElement: how to find and ancestor of type <T> procedurally

Suppose you have the following scenario you have two templated UserControl: UCContainer - is a graphical container for other controls, it can be used to contain different kinds of controls, it can be skinned using a template that will be ch...