Download cloc from https://github.com/AlDanial/cloc.
I’ve installed Perl to run the script, as I’ve not been able to find the Windows executable.
Run cloc with parameters:
cloc . -vcs=git –windows –by-file-by-lang –include-lang=XAML
The results can be piped into a CSV file and then into Excel for analysis.