Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF, How to make text as bold in a string

$
0
0

I have a WPF application. There is a key as Introtext as "My name is John" which is coming from the static resource file "EmployeeResources.resx".

I want to display string as "My name is John" (Is must be bold) in a SINGLE textblock as mention below. 

 <StackPanel Orientation="Vertical" Grid.Column="2">
                <TextBlock Text="{x:Static name:EmployeeResources.Introtext}" />
 </StackPanel>

How can I achieve this. 


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>