积极答复者
How to reduce the dwell time when I update the System.Windows.Documents.Table ?

问题
-
I use the Table to show some information. But there isn't any method to set its verticalAlignment. So I add a method to set its vertical alignment which will traverse the TableCell of a Table to set its paddingwhen it is loaded. However I find it needs a long dwell time untill all of the Table be updated. What should I do to improve this ? Please give me some advice.
- 已编辑 Frank-cq 2015年11月9日 1:57
答案
-
Use FixedPage instead of FlowDocument. that can improve your performance, but you need to design code to convert between FlowDocment and FixedPage. There are some samples online you could reference: https://code.msdn.microsoft.com/windowsdesktop/WPF-Printing-Overview-f28c541a
Bob Bao
Do you still use the same Windows 8 LockScreen always? Download Chameleon Win8 App quickly, that changes your LockScreen constantly.
你是否还在看着一成不变的Windows 8锁屏而烦恼,赶紧下载这个 百变锁屏 应用,让你的锁屏不断地变化起来。- 已标记为答案 Xavier Xie-MSFTModerator 2015年11月20日 3:28
-
Hi Franks,
This issue seems a known performance issue under wpf because of the grouping.
So about how to reduce the dwell time.
Here is a thread talking about this issue, please take a look
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/a116da54-ce36-446a-8545-3f34e9b9038d/
As Ben said,
Fixed documents are more suitable for showing static (not reflowing) continent. In paginated views Fixed and Flow documents should work well with large amount of data. I also suggest you use Asybchronous with your method.
Have a nice day!
- 已建议为答案 Xavier Xie-MSFTModerator 2015年11月12日 5:47
- 已标记为答案 Xavier Xie-MSFTModerator 2015年11月20日 3:28
全部回复
-
Use FixedPage instead of FlowDocument. that can improve your performance, but you need to design code to convert between FlowDocment and FixedPage. There are some samples online you could reference: https://code.msdn.microsoft.com/windowsdesktop/WPF-Printing-Overview-f28c541a
Bob Bao
Do you still use the same Windows 8 LockScreen always? Download Chameleon Win8 App quickly, that changes your LockScreen constantly.
你是否还在看着一成不变的Windows 8锁屏而烦恼,赶紧下载这个 百变锁屏 应用,让你的锁屏不断地变化起来。- 已标记为答案 Xavier Xie-MSFTModerator 2015年11月20日 3:28
-
Hi Franks,
This issue seems a known performance issue under wpf because of the grouping.
So about how to reduce the dwell time.
Here is a thread talking about this issue, please take a look
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/a116da54-ce36-446a-8545-3f34e9b9038d/
As Ben said,
Fixed documents are more suitable for showing static (not reflowing) continent. In paginated views Fixed and Flow documents should work well with large amount of data. I also suggest you use Asybchronous with your method.
Have a nice day!
- 已建议为答案 Xavier Xie-MSFTModerator 2015年11月12日 5:47
- 已标记为答案 Xavier Xie-MSFTModerator 2015年11月20日 3:28