Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

WPF TextBlock vs Label, what's the diff?

DZone's Guide to

WPF TextBlock vs Label, what's the diff?

· Agile Zone ·
Free Resource

Adopting a DevOps practice starts with understanding where you are in the implementation journey. Download the DevOps Transformation Roadmap. Brought to you in partnership with Techtown.

2,000 Things You Should Know About WPF - #842 – The Differences Between Label and TextBlock

You can use either Label or TextBlock elements to display text in an application.

image 
The two elements appear to behave similarly, but there are a few differences:

  • Label...
  • TextBlock....

image

I love Sean's 2,000 Things You Should Know About WPF posts. "WPF? Isn't that dead?" No, not even. Mature, maybe, but hell so am I and I'm not dead (well, at least I like to think so... ;)

Anyway... I was asked this the other day and I gave a pretty lame answer. Now I can actually sound like I know something! I know, imagine that!

Related Past Post XRef: 
A Feed You Should Read #34 - 2,000 Things You Should Know About WPF

               

Take Agile to the next level with DevOps. Learn practical tools and techniques in the three-day DevOps Implementation Boot Camp. Brought to you in partnership with Techtown.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}