internal static void PrepareContainerForItemOverride(DependencyObject element, Style parentItemContainerStyle)
{
// Apply the ItemContainerStyle to the item
Control control = element as Control;
if (parentItemContainerStyle != null && control != null && control.Style == null)
{
control.SetValue(Control.StyleProperty, parentItemContainerStyle);
}
// Note: WPF also does preparation for ContentPresenter,
// ContentControl, HeaderedContentControl, and ItemsControl. Since
// we don't have any other ItemsControls using this
// ItemContainerGenerator, we've removed that code for now. It
// should be added back later when necessary.
}