WPF text blocks

WPF/XAML is still new to me so it feels like every time I do something I learn something new.

If you want to apply different fonts styles for some text use the <TextBlock> tag.

For example if you part of a sentence bold (like below) here is the code.
clip_image002

<TextBlock>

<

TextBlock.Inlines>

<

Run Text="I'm bold" FontWeight="Bold" />

<

Run Text="and I'm not"/>

</

TextBlock.Inlines></TextBlock>
[tweetmeme only_single=”false”]
Advertisements

Got something to add?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s