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

Binding TileView ItemSource to UserControl Property Error

1 Answer 42 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 10 Dec 2010, 08:28 AM
Hi

I am newbie in using silverlight and also in rad tileview. I already search for the error that I encountered but failed to make it works.

I have a sample project that has a class collection that is set to itemsouce of RadTileview Control. 
Then, I put in the contenttemplate of tileview the usercontrol and expose a property with binding property.
When running the project, it infinitely loads the usercontrol and if I debug the code, it shows an error with an error "System.ArgumentException: Value does not fall within the expected range." to the Application_UnhandledException of App.xaml.vb.
If I remove the binding property of my usercontrol to the tileview and replace it with a default value, the project works well.


Here is my files for anyone could help me.
http://www.eg-software.com/client/Example.zip

Thank you in advance.

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 14 Dec 2010, 12:12 PM
Hello Mark,

 The problem is that NameDisplay is a normal property. In wpf and silverlight in order for a binding to works the target of the binding(in your case NameDisplay) should be a DependencyProperty.
If you have further questions feel free to ask.

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