开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜