C-SharpCorner
use this in TextBlock. TextDecorations="Underline"
for textblock you can use TextDecorations="Underline" to make text underline.
Testing Text Underline