ControlTemplate for ItemsControl with remove button near each item

Posted by Broken Pipe on Stack Overflow See other posts from Stack Overflow or by Broken Pipe
Published on 2011-01-15T06:49:20Z Indexed on 2011/01/15 6:53 UTC
Read the original article Hit count: 214

I'm trying to figure out hot to create ItemsControl which contains Button near each Item, clicking on it removes this item from ItemsControl.

I'm new to Silverlight|WPF is it possible to create this using just ControlTemplate? I tried to create inherited ListBox with ControlTemplate that renders button near each item and then i was supposed to hook to click event get item and remove it, but I neither found a way to render button near each item, neither how to subscribe to events from ControlTemplate ;-)

© Stack Overflow or respective owner

Related posts about c#

Related posts about Silverlight