RAJHANHI

RAJHANHI

  • NA
  • 39
  • 11.3k

Selecting ListBoxItem

Feb 24 2014 9:42 AM

I want to select listbox item on click of button. My listbox contain a DataTemaplte as:

<ListBox.ItemTemplate>
  <DataTemplate>
    <Button Name="MyButton" Content="{Binding ShowData}" />
  </DataTemplate>
</ListBox.ItemTemplate>

How to do that ?


Answers (3)