public HeroesPage() { InitializeComponent(); loadingTemplate = (ControlTemplate)Application.Current.Resources["LoadingPage"]; var content = loadingTemplate.CreateContent(); contentView.Content = content as Grid; heroesTemplate = (ControlTemplate)Application.Current.Resources["HeroesTemplate"]; }