mercredi 20 janvier 2016

Get value in listview when checkbox is checked

I have a listview (listpermissions) with a checkbox at the end of it. When the user checks the checkbox and clicks a button I need to get all the ACEName values in the listview.

<GridViewColumn>
          <GridViewColumn.CellTemplate>
                <DataTemplate>
                     <CheckBox x:Name="checkbox" IsChecked="{Binding xACEName}"/>
                </DataTemplate>
          </GridViewColumn.CellTemplate>
</GridViewColumn>

I have no idea how to approach this, i have tried looping through the items in the listview and getting the value if the checkbox is checked and add the ACEName value to a list but this did not work. Any help appreciated.

Aucun commentaire:

Enregistrer un commentaire