You can use Underline
in TextBlock
:
<TextBlock Name="textBlockSave">
<Underline>S</Underline>ave
</TextBlock>
or,
textBlockSave.Inlines.Add(new Underline(new Run("S")));
textBlockSave.Inlines.Add(new Run("ave"));
Add this text block textBlockSave
as Button
Content.
source
to share