BUILD: Windows Metro Style Application Search – SearchPane Thoughts
So your building a Metro style Windows application – is C# still you language of choice?. Within the VS2011 project there is now a new file, Package.appxmanifest, that allows the setting of applications metadata. Here’s why you need to specify meta data:
A Metro style app runs in a security container with limited access to the file system, network resources, and hardware. Whenever a user installs an app from the Windows Store, Windows looks at the metadata in the Package.appxmanifest file to figure out what capabilities the app needs to function. For example, an app might need to access data from the Internet, documents from the user’s Document Library, or the user’s webcam and microphone. When the app is installed, it displays to the user the capabilities it needs, and the user must grant permission for it to access those resources. If the app doesn’t request and receive access to a resource it needs, it will not be allowed access to that resource when the user runs it.
Additionally, we can specify metadata declarations. Search is one such declaration. If you browser over to here you’ll see an example of how to integrate you application into Search. Basically hooking into Windows.ApplicationModel.Search.SearchPane. What’s very cool about this is that the Windows 8 search can now do searches into your applications. Take the default Window 8 Metro interface with the Stocks and News applications running. Imagine if I entered “Vodafone” in the Windows 8 search. Effectively I could search/restrict the stocks in the Stocks application, and see only the news on Vodafone in the News application. Very cool