user1211925
user1211925

Reputation:

How to Programmatically activate an entry in the SettingsPane?

I have a SettingsPane that I populate with a few commands.

I can activate the SettingPane programmatically:

if ( Windows.UI.ViewManagement.ApplicationView.Value != Windows.UI.ViewManagement.ApplicationViewState.Snapped )
{
  SettingsPane.Show();
}
  1. How can I programmatically activate a command in the SettingsPane?

  2. How can I programmatically get a list of the commands in the SettingsPane?

Thanks, EitanB

Upvotes: 2

Views: 520

Answers (1)

Nigel Sampson
Nigel Sampson

Reputation: 10609

I don't believe there is a way, but given for each command you provide the callback when that command is activated I can't see any reason why you can't execute that yourself instead.

You made to do some extra work to make it seem seamless such as showing the settings pane when they dismiss your manually shown settings view.

Upvotes: 1

Related Questions