what is the effcient to access the control in DataTemplate
<datatemplate x:key="mycontrolitemdatatemplate" >
<local:mycontrol />
</datatemplate>
listbox.itemtemplate=application.current.resources["mycontrolitemdatatemplate"] datatemplate;
when dealing list box items, best way access mycontrol. done traverse down visual tree visualtreehelp, when listbox has large number of items, slows app lot.
any suggestions?
i can't see way of doing that.
i guess try geting hold of them on loaded event. it's more memory not have traverse visual tree.
just crazy idea.
Silverlight > Programming Silverlight with .NET – General
Comments
Post a Comment