ComponentOne MediaPlayer for WPF and Silverlight
C1MediaPlayer Task-Based Help / Showing the Item List on Page Load
In This Topic
    Showing the Item List on Page Load
    In This Topic

    By default, the C1MediaPlayer control doesn't show the item list when it's loaded; users will have to open the list themselves by clicking the Item List button. However, you can make the item list show upon page load by setting the C1MediaPlayer.IsItemListVisible property to True.

    At Design Time

    To open the item list on page load, complete the following steps:

    1. Click the C1MediaPlayer control once to select it.
    2. In the Properties window (or Properties panel in Blend), locate the IsItemListVisible check box and then select it. 
    3. Run the program and observe that the item list opens at run time.

    In XAML

    To open the item list on page load, complete the following steps:

    1. Add IsItemListVisble="True" to the <c1mediaplayer:C1MediaPlayer> tag so that the markup resembles the following:
       <c1mediaplayer:C1MediaPlayer Name="C1MediaPlayer1" IsItemListVisible="True">
      
    2. Run the program and observe that the item list opens at run time.

    In Code

    To open the item list on page load, complete the following steps:

    1. Open the Window1.xaml.cs page.
    2. Add x:Name="C1MediaPlayer1" to the <c1ext:C1MediaPlayer> tag so that the control will have a unique identifier for you to call in code.
    3. Place the following code beneath the InitializeComponent() method:

      Visual Basic
      Copy Code
      C1MediaPlayer1.IsItemListVisible = True
      

       

      C#
      Copy Code
      c1MediaPlayer1.IsItemListVisible = true;
      

       

    4. Run the program and observe that the item list opens at run time.