WPF中的自定义文本换行

有没有办法在 WPF中的非矩形容器中包装文本?

Here is how it is done in photoshop

解决方法

遗憾的是,如果没有完全实现textformatter,就没有直接的方法. MSDN article on the basics of an Advanced TextFormatter

The text layout and UI controls in WPF provide formatting properties that allow you to easily include formatted text in your application. These controls expose a number of properties to handle the presentation of text,which includes its typeface,size,and color. Under ordinary circumstances,these controls can handle the majority of text presentation in your application. However,some advanced scenarios require the control of text storage as well as text presentation. WPF provides an extensible text formatting engine for this purpose.

相关文章

vue阻止冒泡事件 阻止点击事件的执行 <div @click=&a...
尝试过使用网友说的API接口获取 找到的都是失效了 暂时就使用...
后台我拿的数据是这样的格式: [ {id:1 , parentId: 0, name:...
JAVA下载文件防重复点击,防止多次下载请求,Cookie方式快速简...
Mip是什么意思以及作用有哪些