WPF text Wrap vs WrapWithOverflow

前端 未结 3 1186
北海茫月
北海茫月 2020-12-04 17:30

What\'s the \"conceptual\" difference between TextWrapping=\"Wrap\" and TextWrapping=\"WrapWithOverflow\" (e.g. for a TextBox)? In the MSDN page ab

3条回答
  •  天命终不由人
    2020-12-04 17:55

    One thing to add to the other answers, WrapWithOverflow lets you use text trimming (ellipsis) on the long words that get cut off:

    
        A really long word is antidisestablishmentarianism and we can use ellipsis trimming.
    
    

提交回复
热议问题