开发者

WPF TabItem Name of Open File

开发者 https://www.devze.com 2023-02-03 07:13 出处:网络
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.Heade

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

精彩评论

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