Reputation:
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();
}
How can I programmatically activate a command in the SettingsPane?
How can I programmatically get a list of the commands in the SettingsPane?
Thanks, EitanB
Upvotes: 2
Views: 520
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