How to check Stack panel items
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
Re: How to check Stack panel items
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?