Is HierarchicalDataTemplate working except ItemsControl and Treeview in wpf?

GEORGE FELIX 6 Reputation points
2021-02-05T05:16:48.967+00:00

I’m creating flow document that contains nested tables.

I want to create nested tables using custom control(Section) data binding. So I need hierarchical template in Resources.

Is there any idea? (I couldn’t use itemscontrol; because used frameworkcontentelement(Block) only instead of framework element(BlockUIContainer).

Thank you in advanced.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,670 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,228 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Felix 1 Reputation point
    2021-02-14T14:46:04.95+00:00

    Thanks for the response. Here used frameworkcontentelement only. not BlockUIContainer.

    But problem is nested tables create using code behind binding.
    main necessary point is using ****"HierarchyTemplate"**** for create nested tables.

    <Table BorderBrush="Orange" BorderThickness="1">
    <TableRowGroup>
    <TableRow>
    <TableCell>
    <Paragraph>Outer Table</Paragraph>
    <Table BorderBrush="Yellow" BorderThickness="1" Padding="20">
    <TableRowGroup>
    <TableRow>
    <TableCell Background="AliceBlue">
    <Paragraph>Inner Table</Paragraph>
    </TableCell>
    </TableRow>
    </TableRowGroup>
    </Table>
    </TableCell>
    </TableRow>
    </TableRowGroup>
    </Table>
    67780-image.png

    Is there any idea????

    0 comments No comments

  2. GEORGE FELIX 6 Reputation points
    2021-08-03T03:57:41.317+00:00

    Is there any solutions from Microsoft?

    0 comments No comments