开发者

Drawing shapes on FlowDocument

开发者 https://www.devze.com 2023-03-09 14:13 出处:网络
I have an application for viewing reports on flowdocument. I have been able to show text file on flow document scroll viewer, now i want to draw various shapes like ellipse, rectangle, circle etc. ove

I have an application for viewing reports on flowdocument. I have been able to show text file on flow document scroll viewer, now i want to draw various shapes like ellipse, rectangle, circle etc. over my flow document content. Iam using Canvas over my flow document to get things done but no success has been found yet.

Kindly help h开发者_运维技巧ow can i do it.


I know it's a bit late, but I happen to come across the same requirement recently and have done some research.

Basically, there is no way of doing that as FlowDocument generates mouse events only from hyperlinks or buttons - images, canvases and other suitable for your request controls don't generate these events.

I haven't found anything about it on MSDN but this comment confirms my point.

I suppose, therefore, you'd have to create your own paginating and scrolling control and render your report pages into it.

Hope it helps.

0

精彩评论

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