Silverlight 2 Beta 2: Value does not fall within the expected range

This can come from a number of potential errors with XAML. The first thing I now check, is to see if I am attempting to add multiple FrameworkElements with the same x:Name. For me, I was dynamically adding usercontrols to a canvas, but I made the mistake of giving the root element of the usercontrol an x:Name.

 Other cases where I created this error:

  • Specified a Grid.Row or Grid.Column that was greater than the actual number of columns or rows

 

Published Tuesday, June 10, 2008 8:32 PM by RogerGuess

Comments

No Comments
Powered by Community Server (Non-Commercial Edition), by Telligent Systems