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/C# 中构建了一个小编辑器,并试图弄清楚如何将打开的文件名(而不是路径)显示为 TabItem2 标题。有人可以帮忙吗?非常感谢!
tabItem.Header = new System.IO.FileInfo(filepath).Name;
或一些变化,这取决于你到底有什么。