Hi,
I need to copy data on click of separate button to clipboard which is being displayed in DataGrid on screen. I found a lots of code on internet but its referencing DataGrid control in viewmodel. I don't want to send control reference to viewmodel as it make code non-unit testable and violate MVVM. I'm using collectionviewsource to bind data. Is there any way to copy that to clipboard without using DataGrid object?
Please suggest.