Another contract is SettingContract
Let’s discuss about it happily :)
Contracts :
A contract is like an agreement between one or more apps. Contracts define the requirements that apps must meet to participate in these unique Windows interactions.
A contract is like an agreement between one or more apps. Contracts define the requirements that apps must meet to participate in these unique Windows interactions.
There are 5 contracts available to our applications:
- File Picker
- Play To
- Search
- Settings
- Share
The Settings charm provides a single access point to
all settings that are relevant in the user's current context.
Implement the Settings contract to:
Provide users with a consolidated place for fast,
in-context access to settings that affect their current Windows Store app.
Adding app settings using Windows Runtime
Specify the commands to be exposed in Settings
Specify the commands in the associated callback. For
each command:
Provide a SettingsCommand.Id and a
localized SettingsCommand.Label.
Set the handler (SettingsCommand.Invoked)
for the event that will be fired when the user selects the command.
Append the SettingsCommand object
to the ApplicationCommands vector to make it available to the SettingsPane.
The Settings charm provides users with a
consolidated place for fast, in-context access to settings that affect the
current .
By:
Khushbu Wadhwani,
Senior Windows app
developer,
References:MSDN,Microsoft
developer forum
No comments:
Post a Comment