I want that my class be auto added by the user control which is calling it.


i think it's not possible i'll ask anyway. want class auto added by user control calling it. per example: i've usercontrol called "testpage" runnig application with 1 canvas called "layoutroot" and usercontrol called "testcontrol" that added in testpage child without given command "layoutroot.children.add(theothercontrol)". code in the testcontrol somenthing that:  

canvas parentcanvas;

parentcanvas = ((this.parent frameworkelement).findcontrol("layoutroot") canvas);

parentcanvas.children.add(this)

 why can't that? thank answer.

i not sure understand scenario trying accomplish, wanted throw in, in case helps:

you can root visual element of app (and walk tree there) getting application.current.rootvisual property.

thanks, stefan wick



Silverlight  >  Programming Silverlight with .NET – General



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607