DataBoundListBox - Tilt Effect

6 posts, 1 answers
  1. Dele
    Dele avatar
    23 posts
    Member since:
    Jun 2012

    Posted 18 Mar 2011 Link to this post

    Currently, the Silverlight Toolkit for WP7 has a Tilt Effect I can use with List Boxes.  Am I able to use the same class on the Databoundlistbox?  It currently doesn't work, so whenever I click on an item in the listbox, there is no visual cue to indicate it was clicked.

    Any suggestions?
  2. Answer
    Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 19 Mar 2011 Link to this post

    Hi Dele,

    Thanks for writing and for your question.

    Yes, you can use the Telerik's tilt effect with the RadDataBoundListBox control. To do so, you need to set the InteractionEffectManager.IsInteractionEnabled attached property to the RadDataBoundListBox to true and add the RadDataBoundListBoxItem type to the allowed types for interaction effects. Take a look at the following code snippet:

    this.lbRecentAlerts.SetValue(InteractionEffectManager.IsInteractionEnabledProperty, true);            InteractionEffectManager.AllowedTypes.Add(typeof(RadDataBoundListBoxItem));

    You can do this in the constructor of your page.

    I hope this helps.

    Do not hesitate to get back to us in case of further questions.

    Regards,
    Deyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Dele
    Dele avatar
    23 posts
    Member since:
    Jun 2012

    Posted 19 Mar 2011 Link to this post

    This works great.  Thanks.
  5. keith patton
    keith patton avatar
    7 posts
    Member since:
    Sep 2009

    Posted 02 Jun 2011 Link to this post

    Hi,

    How can I do the following in xaml, is it possible, or do i need to do this in the view's code behind?

    NewsListBox.SetValue(

     

    InteractionEffectManager.IsInteractionEnabledProperty, true);

     

     

     

     

    InteractionEffectManager.AllowedTypes.Add(typeof(RadDataBoundListBoxItem));

     

  6. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 07 Jun 2011 Link to this post

    Hello Keith,

    You can set the IsInteractionEnabled property in XAML. However, the AllowedTypes collection can only be modified in code.

    I hope this helps.

    Do not hesitate to get back to us in case you have further questions or need assistance.

    Kind regards,
    Deyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  7. Saurav
    Saurav avatar
    2 posts
    Member since:
    Aug 2012

    Posted 18 Sep 2012 Link to this post

    Edit: Found solution
Back to Top
DevCraft banner