3
Reply

Selecting ListBoxItem

RAJHANHI

RAJHANHI

Feb 24 2014 9:42 AM
1.1k

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 ?


Upload Source Code  Select only zip and rar file.
Answers (3)