Robert's blog
Robert Važan

SelectableTextBlock in JungleControls

WPF TextBlock doesn't support selection, which is needed in some applications. SelectableTextBlock control offers a workaround.

SelectableTextBlock control in JungleControls library is like the standard TextBlock control except it allows text to be selected with the mouse.

Text inside SelectableTextBlock is selected
SelectableTextBlock supports selection while preserving basic formatting capabilities of TextBlock.

Sample XAML:

<jc:SelectableTextBlock xmlns:jc="clr-namespace:JungleControls;assembly=JungleControls" Text="Some text" />

It is internally implemented as restyled TextBox, which means that some advanced properties of TextBlock are missing. Most basic formatting is however available as can be seen from the screenshot above.