EN
Il contenuto non è disponibile nella lingua di destinazione, ma solo in inglese.

SettingsFlyout.ShowIndependent method

Applies to Windows and Windows Phone

Opens the Settings flyout, and returns the user to the app after the flyout is dismissed.

Syntax


public void ShowIndependent()

Parameters

This method has no parameters.

Remarks

If a SettingsFlyout is shown by calling the Show method, then clicking the Back button reopens the SettingsPane after the SettingsFlyout dismisses. If a SettingsFlyout is shown by calling ShowIndependent, then clicking the Back button dismisses the SettingsFlyout and returns the user to the app; the SettingsPane is not reopened.

Call the ShowIndependent method to open the SettingsFlyout from a button in your app. In this case, because the user did not open the SettingsFlyout from the SettingsPane, they should return to your app when they click the Back button.

Only one SettingsFlyout is shown at a time. Calling ShowIndependent on a SettingsFlyout closes any other SettingsFlyout currently shown. The SettingsFlyout being closed completes its close animation before the new SettingsFlyout begins its show animation.

Examples

This example shows how to use the ShowIndependent method to open a SettingsFlyout from a button in your app.


<Button Content="App update settings" Click="UpdateSettingsButton_Click"/>



private void UpdateSettingsButton_Click(object sender, RoutedEventArgs e)
{
    UpdateSettingsFlyout updatesFlyout = new UpdateSettingsFlyout();
    updatesFlyout.ShowIndependent();
}

For more code in context, see Scenario 4 of the App settings sample and Quickstart: Add app help.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

SettingsFlyout
Show
Quickstart: Add app settings
Quickstart: Add app help

 

 

Mostra:
© 2014 Microsoft