Render just the first line of a TextBlock
Sometimes you want a TextBlock to just display one line. For example if you have a huge virtualized ListView that contains many data items and in the DataTemplate you're using a TextBlock. When the TextBlock has different height, the virtualization leads to some not so nice behavior when scrolling: (more…)