I helped someone to solve a problem at MSDN forums. The resolution of the issue was easy to solve that mystery. Direct links to the source
The essential part of the source is mentioned below:
TextBlock wordTextBlock = new TextBlock(); Run word = new Run(); Binding wordBinding = new Binding() { Path = new PropertyPath("RequiredWord"), Mode = BindingMode.OneWay }; wordBinding.Source = _words.FirstOrDefault(); wordTextBlock.SetBinding(TextBlock.TextProperty, wordBinding); wordTextBlock.TextWrapping = TextWrapping.Wrap; word.Text = wordTextBlock.Text; word.FontSize = 18; paragraph.Inlines.Add(word); TextBox definition = new TextBox(); definition.AcceptsReturn = true; definition.IsReadOnly = true; InlineUIContainer container = new InlineUIContainer(); Binding meaningBinding = new Binding() { Path = new PropertyPath("Meaning"), Mode = BindingMode.OneWay }; meaningBinding.Source = _words.FirstOrDefault(); definition.SetBinding(TextBox.TextProperty, meaningBinding); container.Child = definition; paragraph.Inlines.Add(container);