It sounds like you are trying to set the Style.Trigger too soon, before
the template has been applied. If you apply the Trigger after the
FrameWorkElement you are targeting has fully loaded you'll
probably find that the
ItemStyleContainer is no longer null.
OnApplyTemplate for your
FrameworkElement should hook you in after the
ItemStyleContainer has been set as it is called after the Visual Tree has