Selected Item with Border

7 posts, 0 answers
  1. ultramods
    ultramods avatar
    18 posts
    Member since:
    Sep 2009

    Posted 26 Apr 2010 Link to this post

    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
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 26 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. stuart armstrong
    stuart armstrong avatar
    4 posts
    Member since:
    Feb 2010

    Posted 29 Apr 2010 Link to this post

    thank you.
  5. Kurt Mang
    Kurt Mang avatar
    12 posts
    Member since:
    Mar 2010

    Posted 19 May 2010 Link to this post

    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
  6. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 21 May 2010 Link to this post

    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.
  7. Brad
    Brad avatar
    2 posts
    Member since:
    Jan 2011

    Posted 19 Feb 2011 Link to this post

    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?
  8. Pana
    Admin
    Pana avatar
    748 posts

    Posted 24 Feb 2011 Link to this post

    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!
Back to Top
DevCraft banner