Questions tagged [textblock]

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

TextBlock is a WPF control for displaying small amounts of text. It also allows to format parts of the content by using different Inlines (e.g. Run, Span, Hyperlink)

1073 questions
-1
votes
1 answer

Rotated textblock doesn't have the correct length

I am trying to fill a Grid in a WPF application dynamically. I'm creating a row and then some columns. in each column I am adding a textblock, like this: GrdMainGrid.RowDefinitions.Add(new RowDefinition(Height = new GridLength(150,…
Nawed Nabi Zada
  • 2,819
  • 5
  • 29
  • 40
-1
votes
1 answer

Displaying superscirpt character in textblock ( windows phone) programmatically?

I am new to Windows phone development. I need to display a superscript character in textblock. ex: 60S - 'S' should be display as superscript. How to do it programmatically?
tilak
  • 4,589
  • 6
  • 34
  • 45
-1
votes
1 answer

Databinding a Textblock in WPF

How does one simply "Databind a textblock to a codebehind C# variable"? In my codebehind I have a public string variable and in my XAML I have but it does not work. Thanks in advance!
-2
votes
2 answers

Slider Thumb with TextBlock in WPF

I am new to WPF and just learning it. I am trying to make a custom Slider in WPF. I want to get a result like this: . But I get this: . My style for the slider looks like this: