How to Select all items in listview in wpf

We can select entire items of listview by using the function



Say Name of the listview id and
listview1.selectall();