How i get canvas children name at runtime

Hello All,

In WPF/E at runtime we get number of Children in canvas by using following property =>

CanvasName.children.count

Similary i want to know, how i get a children /Child name of canvas at runtime.

I tried following way but its not working

CanvasName.children.Name;

Or

CanvasName.children.getValue("Name");

But boths are not working .

So any other way to get Name of canvas children at run time ,please let me know.

[552 byte] By [DINESHCHAUDHARI] at [2007-12-31]
# 1

Hi Dinesh,

You could use CanvasName.Children[index].Name

If this answers your question, please select "Mark as Answer"

Thank you,

Chad Campbell

ChadCampbell at 2007-9-5 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...