2017-04-18 07:52:04 +08:00
|
|
|
## FlowDocument may show an extra line of text
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
### Scope
|
|
|
|
Edge
|
|
|
|
|
|
|
|
### Version Introduced
|
|
|
|
4.5
|
|
|
|
|
|
|
|
### Source Analyzer Status
|
|
|
|
Planned
|
|
|
|
|
|
|
|
### Change Description
|
2017-04-21 02:19:05 +08:00
|
|
|
|
|
|
|
In some cases, a
|
|
|
|
<xref:System.Windows.Documents.FlowDocument>
|
|
|
|
element will display an extra line of text when running on the .NET Framework
|
|
|
|
4.5 compared to how it displayed when run on the .NET Framework 4.0. There are
|
|
|
|
no known cases of the change causing any text to be displayed poorly or
|
|
|
|
illegibly, but it could cause text to appear that previously was omitted from a
|
|
|
|
<xref:System.Windows.Documents.FlowDocument>'s
|
|
|
|
view.
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
- [ ] Quirked
|
|
|
|
- [ ] Build-time break
|
|
|
|
|
|
|
|
### Recommended Action
|
2017-04-21 02:19:05 +08:00
|
|
|
|
|
|
|
In some cases, decreasing the display element's PageHeight property by one can
|
|
|
|
restore the previous number of displayed lines.
|
2017-04-06 04:52:19 +08:00
|
|
|
|
|
|
|
### Affected APIs
|
|
|
|
* `M:System.Windows.Documents.FlowDocument.#ctor`
|
|
|
|
* `M:System.Windows.Documents.FlowDocument.#ctor(System.Windows.Documents.Block)`
|
|
|
|
* `M:System.Windows.Controls.FlowDocumentReader.#ctor`
|
|
|
|
* `M:System.Windows.Controls.FlowDocumentPageViewer.#ctor`
|
|
|
|
* `M:System.Windows.Controls.Primitives.DocumentPageView.#ctor`
|
|
|
|
|
|
|
|
### Category
|
|
|
|
Windows Presentation Foundation (WPF)
|
|
|
|
|
|
|
|
<!--
|
|
|
|
### Notes
|
|
|
|
Analyzer would just look for FlowDocument/FlowDocunmentReader/FlowDocumentPageViewer/DocumentPageView usage in xaml
|
|
|
|
-->
|
|
|
|
|
2017-04-18 07:52:04 +08:00
|
|
|
<!-- breaking change id: 120 -->
|