What's the "conceptual" difference between TextWrapping="Wrap"
and TextWrapping="WrapWithOverflow"
(e.g. for a TextBox)?
In the MSDN page about the class TextBox there is nothing ...
Thank you.
相关问题
- VNC control for WPF application
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
- How to properly change a resource dictionary
MSDN
Hope this helps
Some examples:
This is the original, unwrapped version:
This is
NoWrap
.This is
Wrap
. The wordsRemove
andSample
have been wrapped at theve
andle
, respectively, even though there is no line break opportunity.This is
WrapWithOverflow
. Theve
andle
are not visible (they overflow the available block width) because there is no line break opportunity. TheAll
, in both cases, has been wrapped because thespace
character is a line break opportunity.Edit:
As suggested in the comments, here's some examples of how
Wrap
treats spaces. WhenWidth
is100
,Wrap
andWrapWithOverflow
are identical.Wrap
treats the space betweenwider
andexample
as a line-break opportunity, soexample
is put on a new line to preserve the entire, continuous word.