or
Do we need to have a HierarchicalDataTemplate for each level fot Telerik RadtreeView.
-Departments
-EmployeeA
-Employee B
for the above do I need to have two HierarchicalDataTemplates ?
Where Department is the Parent and employeeA, B are childs
public MainWindow() { InitializeComponent(); var section = new Section(); var paragraph = new Paragraph(); var span = new Span("Span declared in code-behind"); paragraph.Inlines.Add(span); section.Blocks.Add(paragraph); radRichTextBox.Document.Sections.Add(section); } That will work fine, but if you do this:
public MainWindow() { InitializeComponent(); Loaded += MainWindow_Loaded; } private void MainWindow_Loaded(object sender, RoutedEventArgs e) { var section = new Section(); var paragraph = new Paragraph(); var span = new Span("Span declared in code-behind"); paragraph.Inlines.Add(span); section.Blocks.Add(paragraph); radRichTextBox.Document.Sections.Add(section); }