开发者

Dynamic document: WPF Combine bound text in a static inline FlowDocument

I am trying to achieve something like the follwing:

This is a WPF Flow Document shown to user.

This has been generated by user Richard Richardson at 01/01/01 23:15:00.

Blah blah blah (another 466 lines)... End of message.

I want this date and the user name and 466 (and another gazillion literal texts) to come from Bindings.

I would like to declare the documnet's Runs inline, i.e. in the Xaml file.

I'd also need technicial advice (if it's not simple) in how to embed this doc in a wpf control (anything is good, 开发者_开发技巧was thinking of Label or TextBlock).

Note: I am using .NET 3.5.

Thanks a lot!


I believe you'll find what you need here: http://fortes.com/2007/03/bindablerun/ It describes a way to create a bindable Run, which you can use as illustrated in the example downloadable from the page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜