Thoughts on how to go about doing this?
Thanks!
6 Answers, 1 is accepted
I would recommend you to run through this blog post for a reference.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Thank you for the prompt reply. The blog you supplied as a reference is the one I'm currently looking into now, however, there appears to be a bug as I get the following error for this line of code:
Grid rootGrid = gridView.ChildrenOfType<Grid>()[1];
Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<System.Windows.Controls.Grid>'
I can't seem to figure out why this would throw this error if others have been successful using it. Can you help with this error?
Thanks!
Adam
You can use:
Grid rootGrid = gridView.ChildrenOfType<Grid>().ElementAt(1);
Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Thanks for that tip, however I'm getting this error now..Sorry to be such a pain...What am I missing now?
'System.Collections.Generic.IEnumerable<System.Windows.Controls.Grid>' does not contain a definition for 'ElementAt' and no extension method 'ElementAt' accepting a first argument of type 'System.Collections.Generic.IEnumerable<System.Windows.Controls.Grid>'
Thanks so much!!
Adam
Most probably you do not have:
using System.Linq;
Vlad
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Adam