RE: Enumerating children of a type

2012-04-20 Thread Greg Keogh
Jordan, I'm writing a general purpose dashboard where it can be populated with various charts, pickers, panels etc in different ways. I ask for blocks of XML to feed into the various controls, so it's all rather flexible and dynamic. I have to match the id of a block of XML to a child control

Re: Enumerating children of a type

2012-04-20 Thread Stephen Price
If I was to write something like this, I'd take a layout panel (Grid, Stackpanel, WrapPanel, or custom control based on Panel) and bind it to an ObservableCollection. Then you can have a template that displays using a Template Selector and basically show the user control that matches up with the

Re: Enumerating children of a type

2012-04-19 Thread Stephen Price
Quite common to use an extension method similar to the one shown on this thread... http://forums.silverlight.net/t/106379.aspx We use something very close to it on the project where I am. On Thu, Apr 19, 2012 at 4:26 PM, Greg Keogh g...@mira.net wrote: I find I’m often enumerating down the

RE: Enumerating children of a type

2012-04-19 Thread Carl . Scarlett
Yep; same here. Carl. From: ozsilverlight-boun...@ozsilverlight.com [mailto:ozsilverlight-boun...@ozsilverlight.com] On Behalf Of Stephen Price step...@perthprojects.com Sent: Thursday, 19 April 2012 6:25 PM To: ozSilverlight ozsilverlight@ozsilverlight.com Subject: Re: Enumerating

Re: Enumerating children of a type

2012-04-19 Thread Jordan Knight
6:25 PM *To:* ozSilverlight ozsilverlight@ozsilverlight.com *Subject:* Re: Enumerating children of a type ** ** Quite common to use an extension method similar to the one shown on this thread... ** ** http://forums.silverlight.net/t/106379.aspx ** ** We use something