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

Selected Item with Border

6 Answers 62 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
ultramods
Top achievements
Rank 1
ultramods asked on 26 Apr 2010, 10:45 AM
Hello,

Is it possible to provide a separate ItemTemplate for the selected item in the cover flow. I would like the selected item to have the same template as all other items displayed in the cover flow but with the addition of a blue border so that the user knows which item has been selected. I am using MVVM so it's not possible to set the border from the code behind.

Thanks in advance

6 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 26 Apr 2010, 11:07 AM
Hello Stuart,

 As the CoverFlowItem is a ListBoxItem it has Selected state among its visual states. You could use this state to show/hide the border without using different Template. This approach will allow you either to animate showing/hiding the border.

Best wishes,
Miroslav Nedyalkov
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
stuart armstrong
Top achievements
Rank 1
answered on 29 Apr 2010, 03:28 PM
thank you.
0
Kurt Mang
Top achievements
Rank 1
answered on 19 May 2010, 07:53 PM
I would like to show / hide a stack panel in my coverflow items based on whether or not the item is selected. Are you suggesting databinding the panels Visibility property to teh IsSelected property of the cover flow item? If so, a converter would be needed, right? ... and telerik controls don't play nicely with databinding converters.

Can you provide some details on this proposed solution? Thanks!

Kurt
0
Valeri Hristov
Telerik team
answered on 21 May 2010, 11:44 AM
Hi Kurt,

The following example demonstrates how to implement something very similar to your request:
http://demos.telerik.com/silverlight/#CoverFlow/DataInfo

Why do you think that our controls do not play nice with IValueConverter ?

Greetings,
Valeri Hristov
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
Brad
Top achievements
Rank 1
answered on 20 Feb 2011, 02:50 AM
Do you have an example of how to use the visual state to show a border on a selected item or on mouseover?  I have looked at your examples, is there a way to just override these visual states and not create a complete listitem template?
0
Pana
Telerik team
answered on 24 Feb 2011, 09:54 AM
Hello Kurt Mang,

To change the MouseOver you need to edit the ControlTemplate. There is no other way. You either stick with one of the default themes or you create a ControlTemplate to edit the VisualStateManager inside. However using Blend should be easy to do the styling and it should generate most of the templates you need.

Do you want the complete RadCoverflow theme xaml?

Best wishes,
Pana
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
CoverFlow
Asked by
ultramods
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
stuart armstrong
Top achievements
Rank 1
Kurt Mang
Top achievements
Rank 1
Valeri Hristov
Telerik team
Brad
Top achievements
Rank 1
Pana
Telerik team
Share this question
or