#249 – 在FlowDocument中创建表格(Creating a Table in a FlowDocument)
来源:互联网 发布:营销引流软件 编辑:程序博客网 时间:2024/06/08 09:28
你可以使用Table 在FlowDocument 添加列表。通过行列布局呈现表格。
<FlowDocument FontFamily="Cambria" FontSize="14"> <Paragraph>Some Pixar films:</Paragraph> <Table> <Table.Columns> <TableColumn Width="50*"/> <TableColumn Width="15*"/> <TableColumn /> </Table.Columns> <TableRowGroup Background="LightGray" FontWeight="Bold"> <TableRow> <TableCell><Paragraph>Title</Paragraph></TableCell> <TableCell><Paragraph>Year</Paragraph></TableCell> <TableCell><Paragraph>Director</Paragraph></TableCell> </TableRow> </TableRowGroup> <TableRowGroup FontFamily="Verdana" FontSize="12"> <TableRow> <TableCell><Paragraph>Toy Story</Paragraph></TableCell> <TableCell><Paragraph>1995</Paragraph></TableCell> <TableCell><Paragraph>John Lasseter</Paragraph></TableCell> </TableRow> <TableRow> <TableCell><Paragraph>Monster's, Inc.</Paragraph></TableCell> <TableCell><Paragraph>2001</Paragraph></TableCell> <TableCell><Paragraph>Pete Docter</Paragraph></TableCell> </TableRow> <TableRow> <TableCell><Paragraph>The Incredibles</Paragraph></TableCell> <TableCell><Paragraph>2004</Paragraph></TableCell> <TableCell><Paragraph>Brad Bird</Paragraph></TableCell> </TableRow> </TableRowGroup> </Table></FlowDocument>
效果图
原文地址:https://wpf.2000things.com/2011/03/18/249-creating-a-table-in-a-flowdocument/
0 0
- #249 – 在FlowDocument中创建表格(Creating a Table in a FlowDocument)
- #248 – 在FlowDocument中创建列表(Creating a List in a FlowDocument)
- #250 – 在FlowDocument中使用Section (Including a Section Block in a FlowDocument)
- #255 – 在FlowDocument中使文本环绕图片显示(Flow Text Around an Image in a FlowDocument)
- #251 – 在FlowDocument中嵌入UIElement (Embedding an UIElement Within a FlowDocument)
- #253 – (FlowDocument 将会被自动放入到文本阅读器中)FlowDocument is Hosted in a FlowDocumentReader Automatically
- #254 – 能够装载FlowDocument的容器(Types of Containers for Hosting a FlowDocument)
- #246 – 在文档中使用FlowDocument控件(Use FlowDocument Control to Host Entire Documents)
- FlowDocument in WPF
- FlowDocument in WPF
- How can I get a FlowDocument Hyperlink to launch browser and go to URL in a WPF app?
- #252 – FlowDocument 自动调整文本流(FlowDocument Flows its Content Automatically)
- 在FlowDocument中设置TableCell垂直居中遇到的问题
- 在iOS中创建静态库(Creating a Static Library in iOS Tutorial)
- 高亮处理RDF文本(RDF string –> FlowDocument)
- Creating a Plug-In Framework
- Creating a Plug-In Framework
- 自学WPF--第八课FlowDocument
- 项目经理--UML设计图--UML的六种关系
- 不动点迭代(Fixed Point Iteration)
- [转]浅谈CSRF攻击方式
- 建议88:并行并不总是速度更快
- c# webapi POST 参数解决方法
- #249 – 在FlowDocument中创建表格(Creating a Table in a FlowDocument)
- 《你的知识需要管理》
- ARM 伪指令
- codeforce New Problem(dfs)
- 入门-如何查看数据库是哪个用户建立的
- iOS数组倒序排列
- linux sort,uniq,cut,wc命令详解
- c++基础知识整理(1)
- iOS开发小结 - 让你的APP后台运行