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

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........