WPF TextBlock formatting bold from string property
问题 I have binded TextBlock text to a string property. Xaml look like: <TextBlock Text="{Binding Message}" TextWrapping="Wrap"/> Property on the ModelView class look like: private string message; public string Message { get { return message; } set { message = value; PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Message))); } } I want to be able to use Textblock formatting abilities such as bold. for example: Message = "Some string with <Bold>bold</Bold> words"; On run time