I have a GridViewCell whose style has been set by a StyleSelector.
The style is a ControlTemplate that contains a Border which wraps a VisualStateManager (actually an attached property on the Border), a ContentPresenter, and a ToolTipService.ToopTip (which is also an attached property on the border). The Border has a name, PART_CellBorder.
The ToolTip within the ToolTipService contains a collection of InteractionBehaviors which contains a single behavior, LoadToolTipTextBehavior, I'm after.
In the RadGrid's RowUnloaded event handler I need to invoke the Detach() method of the LoadToopTipTextBehavior. I've done this in other cases with xaml defined behaviors, but not when the style has been set by a StyleSelector. How can I get a reference to the Border?
In the past I've drilled down into a ControlTemplate to get a reference to one of its named elements, but in this case the StyleSelector has set the Style and I have not been able to find how to get access to the style, and thus the ControlTemplate.
Thanks in advance,
George