This question is locked. New answers and comments are not allowed.
                        
                        Hi,
I'm playing webradios in my app (on each page), so I'm using a SmoothStreamingMediaElement in the App.xaml page.
Here is the Silverlight code for the template, in the <Application.resources> markup :
<ControlTemplate x:Key="MediaFrameTemplate" TargetType="phone:PhoneApplicationFrame">             <Border x:Name="ClientArea" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" >                 <Grid x:Name="MediaElementContainer">                     <smooth:SmoothStreamingMediaElement Name="SSME_media" Volume="1.0" AutoPlay="True" Loaded="SSME_media_Loaded" />                     <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" />                 </Grid>             </Border>         </ControlTemplate>Here is the C# code, in the InitializePhoneApplication method :
RootFrame.Template = App.Current.Resources["MediaFrameTemplate"] as ControlTemplate;I'm using que Q2 2011 Beta, because I'm getting issues with the LoopingList when I'm launching several times the same page ( http://www.telerik.com/community/forums/windows-phone/loopinglist/loopinglistdatasource-may-not-be-associated-with-multiple-looping-lists.aspx ). I'm using a RadPhoneApplicationFrame instead of the PhoneApplicationFrame. With the Q1 2011 it's ok, with a simple PhoneApplicationFrame it's ok, but with the RadPhoneApplicationFrame of the Q2 2011 Beta tools, I'm getting that exception :
System.NullReferenceException was unhandled   Message=NullReferenceException   StackTrace:     Ã  Telerik.Windows.Controls.RadPhoneApplicationFrame.OnApplyTemplate()     Ã  System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)Thanks for your help,

