How to notify the TabItem switching in c#? (if there are many TabItems)

最后都变了- 提交于 2019-12-11 07:53:13

问题


I have created TabItems in silverlight where each tab display some text. When i change the text then it show asterisk at the Header of TabItem with header name.

Now what i want to achieve is : suppose i made a change on the current TabItem text display then when i switch from the one tab to another tab item then it must show a pop up saying "do you wanna save the changes done ?"

Does silverlight provide any facility in TabItem to notify when there is change in the TabItem (I mean when switching is done from one tabitem to another) ?

On switching here from one tab item to another must pop up a message that do you wanna save the change in the previous tab. How to get notification of switching the TabItem(NOT TabControl) ?

来源:https://stackoverflow.com/questions/24868119/how-to-notify-the-tabitem-switching-in-c-if-there-are-many-tabitems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!