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.
在 WPF 中有没有办法设置 TextBlock 以便自动设置其 MinHeiht 和 MinWidth 以便其内容完全可见或者我应该自己编写代码?
谢谢。
编辑: TextBlock 位于网格行内,我想设置行的最小大小以允许 TextBlock 显示其全部内容。
如果将文本块列的列定义宽度设置为“自动”,它将自动增长以适应不断增长的文本块。