Udostępnij za pośrednictwem


LauncherOptions.DisplayApplicationPicker Property

Definition

Gets or sets a value that indicates whether to display the Open With dialog whenever the association launching API is called.

public:
 property bool DisplayApplicationPicker { bool get(); void set(bool value); };
bool DisplayApplicationPicker();

void DisplayApplicationPicker(bool value);
public bool DisplayApplicationPicker { get; set; }
var boolean = launcherOptions.displayApplicationPicker;
launcherOptions.displayApplicationPicker = boolean;
Public Property DisplayApplicationPicker As Boolean

Property Value

Boolean

bool

True if the Open With dialog should always be displayed; otherwise false.

Examples

See the code example in the LaunchUriAsync(Uri, LauncherOptions) topic.

Remarks

You should use the Open With dialog box when the user may want to select an app other than the default for a particular file. For example if your app allows the user to launch an image file, the default handler will likely be a viewer app. In some cases the user may want to edit the image instead of viewing it. Use the Open With option along with an alternative command in the AppBar or in a context menu to let the user bring up the Open With dialog and select the editor app in these types of scenarios.

Important

This property is only implemented on Desktop devices.

Applies to

See also