Skip to content

Commit

Permalink
Merge pull request reactiveui#72 from lunaryorn/fix-template-access
Browse files Browse the repository at this point in the history
Access template elements after template is applied
  • Loading branch information
Paul Betts committed Jul 11, 2012
2 parents e4d66ee + d84f114 commit ccb88f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ReactiveUI.Xaml/TransitioningContentControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ public class TransitioningContentControl : ContentControl
public TransitioningContentControl()
{
this.DefaultStyleKey = typeof (TransitioningContentControl);

this.Loaded += this.TransitioningContentControlLoaded;
}

/// <summary>
Expand Down Expand Up @@ -286,7 +284,7 @@ Storyboard GetTransitionStoryboardByName(string transitionName)
return transition;
}

void TransitioningContentControlLoaded(object sender, RoutedEventArgs e)
public override void OnApplyTemplate()
{
// Wire up all of the various control parts.
this.container = (Grid) GetTemplateChild("PART_Container");
Expand Down

0 comments on commit ccb88f5

Please sign in to comment.