CoverFlow Create button to show child window

4 posts, 0 answers
  1. Anthony
    Anthony avatar
    26 posts
    Member since:
    Mar 2009

    Posted 10 Nov 2010 Link to this post


    Im new to using Silverlight, i have Silverlight app that uses the CoverFlow control, on each coverflow item the display is a list of hyperlinks that link to a url, this part is fine. 

    On the CoverFlow Item i have a button that when clicked shows a new ChildWindow, i do this by :
    <Button Content="Walkthrough" x:Name="LinksButtonWalkthrough" HorizontalAlignment="Left" FontFamily="Bliss 2 Bold" FontSize="20"  Foreground="#FF3F3FCE" FontWeight="Bold" Cursor="Hand" VerticalContentAlignment="Top" Width="150" VerticalAlignment="Top" Height="30"/>

    Then have the code
    Private Sub LinksButtonWalkthrough_Click(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles LinksButtonWalkthrough.Click
            Dim cwNew As New ChildWindow
        End Sub

    This is fine, but what i want to do is have this button show a different ChildWindow dependant on which CoverFlow Item is selected.

    So e.g. if the cover flow has 6 items, i want the button to show me a different child window that will all have different content dependant on which coverflow item is selected.

    How would i achieve this.

    Many Thanks
  2. George
    George avatar
    1332 posts

    Posted 15 Nov 2010 Link to this post

    Hello Anthony,

    Thank you for contacting us.

    I would suggest you to determine which item is selected by using the SelectedItem property of the RadCoverFlow and create the child window according to it.

    I hope this helps.

    Kind regards,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Hernan
    Hernan avatar
    4 posts
    Member since:
    Nov 2010

    Posted 01 Jan 2011 Link to this post

    Hi George,
    And instead of 6 items what if you are binding your items from a xml file containing over 100 elements. It would be time wasting to create the same amount of childwindows. How would you achieve this?
  4. George
    George avatar
    1332 posts

    Posted 06 Jan 2011 Link to this post

    Hi Hernan,

    You could pass the selected item in the coverflow as a parameter and you could add some logic that creates the childwindow according to this item.  

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top