locked
Callback when SettingsFlyout unload

    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);
    	PreferencesSettingFlyout->Show();
    

    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

Answers