关闭时CharmFlyout事件 [英] CharmFlyout event when closed
问题描述
您好,我正在使用CharmFlyout控件来显示我的应用程序的设置。
Hello, I'm using the CharmFlyout control to display settings of my app.
在我的应用程序中,用户可以添加帐户,我想实现此类消息Windows 8中的应用程序默认值。所有帐户都显示在该页面的右侧。
In my app the user can add accounts and I want to implement this like the Messages app default in Windows 8. All the accounts are shown on that page at the right side.
我有一个主页,用户可以看到所有可用的账户。当用户添加了帐户时,我希望主页刷新帐户列表。
I have a mainpage where the user can see all the available accounts. When the user had added an account I want that the mainpage refreshes the list of accounts.
当我使用"Window activate"时主页的事件(Window.Current.CoreWindow.Activated + = CoreWindow_Activated;)当我关闭默认设置的魅力时会触发此事件,但是当我输入CharmFlyout时,事件不会被触发....
When I use the "Window activate" event of the mainpage (Window.Current.CoreWindow.Activated += CoreWindow_Activated;) this event is triggered when I close the default settings charm, but when I enter the CharmFlyout the event is not fired....
有没有办法可以触发CharmFlyout的关闭事件?
Is there a way that I can trigger the close event of the CharmFlyout?
推荐答案
您使用的是: http://charmflyout.codeplex.com/
?
你应该使用 的  IsOpenChanged事件和IsOpen属性。
You should use the IsOpenChanged event and IsOpen property.
参见代码:
http://charmflyout.codeplex.com/SourceControl/changeset/view/19182#212834
这对Window.Current.CoreWindow.Activated没有任何影响,因为flyout不是一个页面!是显示的用户控件
This don´t have any influence with Window.Current.CoreWindow.Activated because flyout is not a page! Is a user control that is showned
这篇关于关闭时CharmFlyout事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!