This is a migrated thread and some comments may be shown as answers.

CoverFlow Create button to show child window

3 Answers 54 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 10 Nov 2010, 05:28 PM
Hi

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
        cwNew.Show()
  
    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

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 15 Nov 2010, 08:29 AM
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,
George
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
0
Hernan
Top achievements
Rank 1
answered on 01 Jan 2011, 08:18 PM
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?
0
George
Telerik team
answered on 06 Jan 2011, 09:59 AM
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.  

Greetings,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
CoverFlow
Asked by
Anthony
Top achievements
Rank 1
Answers by
George
Telerik team
Hernan
Top achievements
Rank 1
Share this question
or