Building a charming Windows 8 app

16
Building a charming application @NicoVermeir

description

Presented by Nico Vermeir.

Transcript of Building a charming Windows 8 app

Page 1: Building a charming Windows 8 app

Building a charming application

@NicoVermeir

Page 2: Building a charming Windows 8 app

Who am I?

@[email protected]

www.spikie.be

Page 3: Building a charming Windows 8 app

Agenda

• What are charms?• Search contract• Share contract• Share source• Share target

• Settings contract• Take aways

Page 4: Building a charming Windows 8 app

What are charms?

• Universal way of doing tasks that are found in most applications• Found on the charms bar• Win + C

Page 5: Building a charming Windows 8 app

What are charms?

Searching throughout the Operating System and inside apps

Share content between applications

Application or OS settings

Page 6: Building a charming Windows 8 app

Search contract

• Add search page• Implement search• Add filters• Add search suggestions• From code• From a folder• From an OpenSearch API

Page 7: Building a charming Windows 8 app

DEMOSearch contract

Page 8: Building a charming Windows 8 app

Share contract

• Share information with other applications• Text• HTML• Links• Images• ...

• Receive share information from other applications

Page 9: Building a charming Windows 8 app

Share contract

Page 10: Building a charming Windows 8 app

Share contract

• Source• Prepare share info• Respond to DataRequested event

• Target• Add TargetPage• Set declaration• Interpret data in Activate method

Page 11: Building a charming Windows 8 app

DEMOShare contract

Page 12: Building a charming Windows 8 app

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

Page 13: Building a charming Windows 8 app

Callisto

• Open source toolkit by Tim Heuer• Controls

• Including a SettingsFlyout

• Converters• Extensions and Helpers• https://github.com/timheuer/Callisto/wiki

Page 14: Building a charming Windows 8 app

DEMOSettings contract with Callisto

Page 15: Building a charming Windows 8 app

Take aways

• Implementing charms provide a universal way of working with apps• Easy to implement• Use Callisto for fly-outs

Page 16: Building a charming Windows 8 app