Binding TileView ItemSource to UserControl Property Error

2 posts, 0 answers
  1. Mark
    Mark avatar
    8 posts
    Member since:
    Nov 2010

    Posted 10 Dec 2010 Link to this post


    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.

    Thank you in advance.
  2. Zarko
    Zarko avatar
    755 posts

    Posted 14 Dec 2010 Link to this post

    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.

    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top