WPF 中 TextBlock 設置TextTrimming 后,並根據需要自動顯示 ToolTip 第一種方式:在 TextBlock 中使用附加屬性 實現 TextBlockUtils 類,定義 AutoTooltip 附加屬性: View Code x ...