WPF 开发中的控件、布局、行为、样式与模板应用
1. 动态生成文档内容
在 WPF 应用程序中,我们可以动态生成文档内容。以下是实现动态生成文档内容的代码示例:
this.listOfFunFacts.MarkerStyle = TextMarkerStyle.Circle;
this.listOfFunFacts.ListItems.Add(new ListItem(new
Paragraph(new Run("Fixed documents are for WYSIWYG print ready docs!"))));
this.listOfFunFacts.ListItems.Add(new ListItem(
new Paragraph(new Run("The API supports tables and embedded figures!"))));
this.listOfFunFacts.ListItems.Add(new ListItem(
new Paragraph(new Run("By default Flow documents are read only!"))));
this.listOfFunFacts.ListItems.Add(new ListItem(
new Paragraph(new Run
("BlockUIContainer allows you to embed WPF controls"))));
// Now add some data to the Paragraph.
// First part of sentence.
Run p
超级会员免费看
订阅专栏 解锁全文
4362

被折叠的 条评论
为什么被折叠?



