Click to See Complete Forum and Search --> : How to check Stack panel items


Shythal
June 11th, 2009, 05:38 AM
Hi,

I am working on WPF stack panel. In this I used to add items dynamically to the stack panel. Now If I click on the stackpanel item some message like the number of the child clicked should be displayed. Will there be any events for thi to checking the selected item of the stack panel.

If any one have any idea how to do this please reply me.

Thanks in advance

Arjay
June 14th, 2009, 07:18 PM
Unlike the listbox class, StackPanel doesn't inherit from Selector. That means, you'll need to add any selection functionality to the class yourself.

Is there any reason you can't use a ListBox?