c# - How to add a button after each control in ItemsControl? -


i no know how current item. if did not need button, work without item template. there better option instace of using itemscontrol? enter image description here

here's example of how using itemscontrol:

    <itemscontrol x:name="itemscontrol" itemssource="{binding path=items}">             <itemscontrol.itemspanel>                 <itemspaneltemplate>                     <wrappanel/>                 </itemspaneltemplate>             </itemscontrol.itemspanel>             <itemscontrol.resources>                 <datatemplate datatype="{x:type local:type1}">                     <stackpanel>                         <textblock text="{binding property1}"/>                         <textblock text="{binding path=property2, mode=oneway}"/>                     </stackpanel>                 </datatemplate>             </itemscontrol.resources>         </itemscontrol> 

Comments