WPF TabItem Name of Open File
I've built a little editor in WPF/C# and am trying to figure out how to displ开发者_如何学Cay the open filename (not path) as the TabItem2 header. Can someone please assist? Many thanks!
tabItem.Header = new System.IO.FileInfo(filepath).Name;
or some variations of this, depending on what exactly do you have.
精彩评论