views:

9

answers:

0

I have the following code inside my ControlTemplate:

<EventTrigger RoutedEvent="ControlTemplate.Loaded">
            <EventTrigger.EnterActions>
                <BeginStoryboard>

And I want to start Storyboard which I have defined in ControlTemplate, when control is loaded. So my question is: what in ControlTemplate rises Loaded event?

I can't use FrameworkElement.Loaded as object which are target of my animation aren't accessible when the Loaded event is fired.

P.S. ControlTemplate.Loaded not working