How to find whether checkbox item has selected in listbox in wpf

Well Here is the code......


          ListViewItem mylistviewitem = new ListViewItem();
          var lv = (DataRowView)ListViewEmployeeDetails.Items[i];
          mylistviewitem = (ListViewItem)(ListViewEmployeeDetails.ItemContainerGenerator.ContainerFromItem(lv));
          if (mylistviewitem != null)
          {
              if (mylistviewitem.IsSelected)
                 {

                        Have your code .......

                 }

           }

I hope it will resolve your problem of finding the item selected in listbox thanks...
Next Recommended Reading Multi Select Combobox in WPF