当有更改时,需要在选项卡上添加"*",并在保存后消失. [英] Appending an '*' on a tab when there are changes need to be saved and should disappear after saving.

查看:79
本文介绍了当有更改时,需要在选项卡上添加"*",并在保存后消失.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想问些帮助.我有一个正在进行的开发项目,并且具有telerik选项卡.它正在显示多个模板.我需要做的是在有要保存的更改时添加"*",并在保存时使其消失.在Microsoft Visual Studio上,这种可能性更大.当我们对某个(.cs)文件进行了更改时,将出现一个"*",并在保存后消失.这正是我应该执行的任务.我希望有人可以帮助我!非常感谢!..

Hi I just want to ask some help. I have an ongoing development project and has telerik tab. It is displaying multiple templates. What I need to do is to append a ''*'' when there are changes to be saved and make it disappear when it is saved. This is more likely on Microsoft Visual Studio. When we had changes on a certain (.cs) file, there is an ''*'' appearing and disappears after saving. This is exactly what i should do on my task. I hope someone could help me with this ! Thanks alot!..

推荐答案

看看下面的这些链接.它是一个关闭按钮,但您可以遵循与"*"相同的原理.
如何向WPF TabItem添加关闭按钮 [ ^ ]

http://www.blogs. intuidev.com/post/2010/02/15/WPF-TabControl-series-Part-4-Closeable-TabItems.aspx [
Take a look at these links below. it''s a close button but you can follow the same principle with the ''*''.
How to add a Close button to a WPF TabItem[^]

http://www.blogs.intuidev.com/post/2010/02/15/WPF-TabControl-series-Part-4-Closeable-TabItems.aspx[^]


首先,您需要一种方法来检测是否对选项卡的内容进行了更改,然后只需将标题从"Tab1"更改为"Tab1 *".
First off, you need a method to detect whether changes have been made to the contents of the tab, and then you just need to change the title from "Tab1" to "Tab1*".


这篇关于当有更改时,需要在选项卡上添加"*",并在保存后消失.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆