Youngjae
Youngjae

Reputation: 25050

Show Share charm programmatically

I found there's a way to show Settings charm and Search charm bar programmatically.

But I hardly find how to show Share charm by button click on my app UI.

Is there any method to invoke to expand Share charm?

My educational app needs to show the button because children cannot use well with hidden charm bar.

Upvotes: 1

Views: 454

Answers (1)

Farhan Ghumra
Farhan Ghumra

Reputation: 15296

DataTransferManager class has static method ShowShareUI(), which programmatically initiates the user interface for sharing content with another app.

private void btnShare_Click(object sender, RoutedEventArgs e)
{
    DataTransferManager.ShowShareUI();
}

Upvotes: 1

Related Questions