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

DataBoundListBox - Tilt Effect

5 Answers 177 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dele
Top achievements
Rank 2
Dele asked on 18 Mar 2011, 08:51 PM
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?

5 Answers, 1 is accepted

Sort by
0
Accepted
Deyan
Telerik team
answered on 19 Mar 2011, 04:50 PM
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>>
0
Dele
Top achievements
Rank 2
answered on 19 Mar 2011, 11:36 PM
This works great.  Thanks.
0
keith patton
Top achievements
Rank 1
answered on 02 Jun 2011, 11:02 PM
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));

 

0
Deyan
Telerik team
answered on 07 Jun 2011, 07:55 AM
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>>
0
Saurav
Top achievements
Rank 1
answered on 18 Sep 2012, 09:49 AM
Edit: Found solution
Tags
DataBoundListBox
Asked by
Dele
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Dele
Top achievements
Rank 2
keith patton
Top achievements
Rank 1
Saurav
Top achievements
Rank 1
Share this question
or