






















Here’s a quick tip how to show linebreaks in a tooltip in xaml.
I wanted to show properties on multiple lines (in a multibinding):
02 |
<LABEL Content="{Binding Name}"> |
05 |
<TEXTBLOCK.TEXT> |
06 |
<MULTIBINDING StringFormat="{}Code: {0}
IP: {1}"> |
07 |
<BINDING Path="Code" /> |
08 |
<BINDING Path="IP" /> |
09 |
</MULTIBINDING> |
10 |
</TEXTBLOCK.TEXT> |
This results in the following tooltip (where the mouse hovers on the text “FTP”):
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。