Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在silverlight TextBlock 中,TextTrimming="WordEllipsis"用于在文本超出文本块宽度时显示省略号。
TextTrimming="WordEllipsis"
有没有办法用省略号获取显示文本(屏幕上显示的内容)?
我需要放置图像而不是省略号。
谢谢苏扬布
要将图像设置为椭圆的背景,我们可以将图像画笔设置为椭圆的填充。
<Ellipse.Fill > <ImageBrush ImageSource="dock.jpg" /> </Ellipse.Fill >
试试看回复。。