Top "Textblock" questions

TextBlock is a WPF control for displaying small amounts of text.

WPF TextBlock Color for each Character

how to get each character of a textblock of different color in wpf?

wpf colors textblock
Having hardcoded text with a binding in a TextBlock

In WPF, is there any way to have the Text property of a TextBlock to contain both hard coded text …

wpf xaml data-binding textblock
WPF - How to right align a textblock inside a horizontally oriented stackpanel?

This should be so simple - I've been hitting my head against my desk for so long trying to make …

wpf xaml .net-3.5 textblock stackpanel
How to detect a change in the Text property of a TextBlock?

Is there any way to detect a change in the Text property of a TextBlock element using events? (I'm trying …

wpf textblock
How to bind a TextBlock to a resource containing formatted text?

I have a TextBlock in my WPF window. <TextBlock> Some <Bold>formatted</Bold> text. &…

wpf xaml binding resources textblock
How to bind a variable with a textblock

I was wondering how I would be able to bind a text block to a variable within my C# class. …

wpf data-binding textblock
How to hide Label or TextBlock inside a WPF Grid

I am trying to hide the TextBlock and Label which are placed inside a grid like so: <TextBlock Grid.…

wpf grid label textblock
WPF TextBlock highlight certain parts based on search condition

I have TextBlock that has Inlines dynamicly added to it (basically bunch of Run objects that are either italic or …

c# wpf highlight textblock
WPF/XAML: How to make all text upper case in TextBlock?

I want all characters in a TextBlock to be displayed in uppercase <TextBlock Name="tbAbc" FontSize="12" TextAlignment="Center" Text="…

wpf xaml uppercase textblock
How to TextWrap a TextBlock within a width Auto Column?

Consider something as follows: <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="Auto"/> &…

wpf xaml silverlight textblock