Horje
how to change color of part from the text in textblock wpf Code Example
how to change color of part from the text in textblock wpf
1.
TextBlock textBlock = new TextBlock { Inlines = { new Run { Text = "some text: " }, new Run { Text = "some text", Foreground = Brushes.White } } };

2.
textblock.Inlines.Clear();
textblock.Inlines.Add(new Run("text"));
textblock.Inlines.Add(new Run("text") { Foreground = Brushes.White });




Csharp

Related
replace multiple characters in string c# Code Example replace multiple characters in string c# Code Example
project mongodb c# Code Example project mongodb c# Code Example
Static Keyword Code Example Static Keyword Code Example
scheduler Code Example scheduler Code Example
Scheduler .NET Code Example Scheduler .NET Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7