WPF DataGrid with selectable rows and button
I am new to C# but purchased Linqpad to try and learn some new skills, and have to an extent cutting and pasting and meddling from the internet.
I have managed to get my results from my Gmail API query into a list of class objects, but would like to have them in a WPF DataGrid with a button that I can use the selected rows from the results by CTRL left clicking to select, then do something with the selected items.
Could someone please give me a small example of this? I am going in circles and seem to have fallen into some ""double quote"" syntax hell with the XAML.
The resulting use will be to mark the selected Gmail emails as read.
Thanks for looking.