building a charming windows 8 app
DESCRIPTION
Presented by Nico Vermeir.TRANSCRIPT
Building a charming application
@NicoVermeir
Agenda
• What are charms?• Search contract• Share contract• Share source• Share target
• Settings contract• Take aways
What are charms?
• Universal way of doing tasks that are found in most applications• Found on the charms bar• Win + C
What are charms?
Searching throughout the Operating System and inside apps
Share content between applications
Application or OS settings
Search contract
• Add search page• Implement search• Add filters• Add search suggestions• From code• From a folder• From an OpenSearch API
DEMOSearch contract
Share contract
• Share information with other applications• Text• HTML• Links• Images• ...
• Receive share information from other applications
Share contract
Share contract
• Source• Prepare share info• Respond to DataRequested event
• Target• Add TargetPage• Set declaration• Interpret data in Activate method
DEMOShare contract
Settings contract
• The best only place to set your in-app settings• Handle CommandsRequested event for the SettingsPane• Add SettingsCommands• Add fly-out...• ...but only when you’re using JavaScript
Callisto
• Open source toolkit by Tim Heuer• Controls
• Including a SettingsFlyout
• Converters• Extensions and Helpers• https://github.com/timheuer/Callisto/wiki
DEMOSettings contract with Callisto
Take aways
• Implementing charms provide a universal way of working with apps• Easy to implement• Use Callisto for fly-outs