views:

13

answers:

0

I’m starting with SL 4. I made a form with the progress download, and is working great. My xaml looks like the following:

  <Grid x:Name="LayoutRoot" Background="White">
        <smf:SMFPlayer>
            <smf:SMFPlayer.Playlist>
                <media:PlaylistItem DeliveryMethod="ProgressiveDownload" MediaSource="MYURL"/>
            </smf:SMFPlayer.Playlist>
        </smf:SMFPlayer>
    </Grid>
</UserControl>

And the page aspx containing this SL control works great as well. Now I’d like to do the following: 2 buttons in the page and each button click must show a different show. Should I make 2 xaml file and according to the button load the corresponding user control, or is it possible to passe just the Mediasourve with InitParams? In this case how to code it. Any help would be greatly appreciated.