Callback when SettingsFlyout unload RRS feed

  • Question

  • Hi,

    I want to update the MainPage after user closes the SettingsFlyout menu. I suppose to add an event handler to the SettingsFlyout and callback MainPage. Working on Windows 8.1 c++.

    	PreferencesSettingFlyout = ref new SettingsFlyoutPreferences();
    	PreferencesSettingFlyout->Unloaded += ref new Windows::UI::Xaml::RoutedEventHandler(this, &MainPage::OnSettingFlyoutPreferences_Unloaded);

    void OnSettingFlyoutPreferences_Unloaded(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
    	//do something here

    The syntax seems correct, but the compiler reports "Cannot link external symbol"

    Please help.

    Thursday, February 13, 2014 3:03 PM


  • Your OnSettingFlyoutPreferences_Unloaded method is in global scope, not in MainPage's scope:

    void MainPage::OnSettingFlyoutPreferences_Unloaded(...)

    • Proposed as answer by Michael Blome Tuesday, February 18, 2014 10:50 PM
    • Marked as answer by Anne Jing Friday, February 21, 2014 3:28 AM
    Thursday, February 13, 2014 4:08 PM