Need to know when a CustomTaskPane is closed in office 2010
-
2012년 3월 8일 목요일 오전 7:58
A CustomTaskPane has two events in Office 2010, and one of them, VisibleChanged, is fired when someone x-es out the CustomTaskPane. BUT, in Office 2010 you will also get a callback to the VisibleChanged event when you click the File menu AND when you close the file menu! In other words I have no clue if someone is actually x-ing out the CustomTaskPane or hitting the File menu. I only find recommendations of using the VisibleChanged event, but this is not good enough.
Anyone have a workaround for this?
Thanks in advance,
Martin
모든 응답
-
2012년 3월 9일 금요일 오전 4:34중재자
Hi Martin,
Thank you for posting.
You can trap whether the File tab is clicked via custom ribbon and call the backstage's onShow mentod. In this way, you can know that whether someone have closed the CustomTaskPane or just hit the File Menu.
Best Regards,
Bruce Song [MSFT]
MSDN Community Support | Feedback to us
- 답변으로 표시됨 Bruce SongModerator 2012년 3월 12일 월요일 오전 4:00
-
2012년 3월 9일 금요일 오후 3:31
I resolved this by adding <backstage onShow".."> in my xml. For others who have an ordinary ribbon add-in and needs to find out if someone X-ed out the pane, read here (very easy fix): http://social.msdn.microsoft.com/Forums/en-US/officegeneral/thread/208ce6e1-1fc7-47ca-8f77-699892a6e61c- 답변으로 표시됨 Bruce SongModerator 2012년 3월 12일 월요일 오전 4:00

