Top "Textblock" questions

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

programmatically make textblock with hyperlink in between text

In XAML I have the following code: <Label Width="120" Height="20" Name="label1" SnapsToDevicePixels="True" HorizontalAlignment="Left" VerticalAlignment="Bottom"> &…

c# wpf hyperlink textblock
WPF Setting the default style on a TextBlock overrides the style for a Label

Setting the default style on a TextBlock causes the style in the Label and other controls to be set as …

wpf styles default font-size textblock
How to grow/shrink a TextBlock (Font Size) to the available space in WPF?

I've seen this question asked a lot, however, to the opposite of what I'm looking for. While other people want …

c# wpf font-size textblock wpf-4.0
Create DataGridTemplateColumn Through C# Code

I have a dynamic Datagrid that I have created. I am creating each column for it through code behind. I …

c# wpf datagrid combobox textblock
Scrolling a TextBlock

I have a TextBlock and a Textbox in the same location. Depending on what mode the user is in, I …

silverlight xaml windows-phone-7 scrollviewer textblock
Current Date in Silverlight XAML TextBlock

I am coming from Flex where you can do just about anything inside of curly braces. I am trying to …

silverlight xaml date binding textblock
How can I change the Foreground color of a TextBlock with a Trigger?

I want to change foreground color of a TextBlock from dependencyproperty. But I don't change textblock color. I don't know …

wpf textblock datatrigger foreground
Add carriage return to string resource in WPF

My applications store all localized text in a string resource dictionary as suggested here http://msdn.microsoft.com/en-us/library/…

wpf textblock carriage-return
TextBlock text wrapping in GridViewColumn.CellTemplate not working

I am having problems getting the TextWrapping to work in this example. Can anyone see what I am duing wrong …

wpf datatemplate textblock word-wrap gridviewcolumn
How to display the text in one line in wpf textblock

I'm a newbie with wpf , what i want to display the text in one line in wpf textblock. eg.: <…

wpf textblock