c# - How do I add a new Table or Grid to a WPF TableCell? -


i can add text wpf table cell using:

cell.blocks.add(new paragraph(new run("example text"))); 

what i'd able add object within cell such table or grid. possible?

you cannot add grid tablecell... tablecell can host elements deriving block

msdn:

tablecell elements may host 1 or more flow content elements deriving block. valid content elements tablecell include:

  • blockuicontainer

  • list

  • paragraph

  • section

  • table

the easisest way add other elements tablecell in xaml...

<tablecell><paragraph fontsize="14pt" fontweight="bold">planet</paragraph></tablecell> 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -