|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
ContentsIntroductionThis article explains the power of a new Vista feature, the SideShow. The
goal of this article is to use the Sideshow, with as few steps as possible. To demonstrate
this, I will get data from a web service. After this article you can use the
When I developed the article, the framework was in beta. The environment I used to test it:
At the end of this document, there are some links that will help you with installing the Microsoft VirtualSideShow. BackgroundThe Microsoft Windows SideShow Platform is a new feature developed for Microsoft Windows Vista that enables developers to create new applications and extend existing ones specifically for devices with small displays and limited interaction models. Applications designed to work with the platform are referred to as gadgets. The devices supported by the platform include, but are not limited to: displays attached to a laptop, front panel computer displays, displays embedded in keyboards, cell phones, digital picture frames, and other display devices. Driver and simulatorTo compile the code, you must install the SideShow SDK Beta, which is currently available from Microsoft here. To run the binary you need to obtain two files, a driver and an emulator, which shipped with the Vista SDK. After installation, you will find the emulator driver (WindowsSideShowVirtualDevice.exe) and emulator (VirtualSideShow.exe) in the 'C:\Program Files\Microsoft SDKs\Windows\v6.0\Bin' directory. Execute windowsSideShowvirtualdevice.exe /regserver first and VirtualSideShow.exe right after. In the Control Panel, open Windows SideShow, now you can see the Simulator installed as shown in the picture after. The VirtualSideShow.exe has only the default item.
When you use my demo and click register, it adds a new item to the list. Then you can run the demo program WeatherSideShow.exe, contained in the demo download. Info: Note that to see the sample run on the SideShow you must have VirtualSideShow.exe open. Using the VirtualSideShowSeveral options are offered:
Launching and registering WeatherSideShow.exe adds a new item on VirtualSideShow called 'Weather SideShow Gadget'. The inside menu shows a menu with two items, the first is the data received from WS, the second is the data stored in the application. Using the binaryFirst of all you must have VirtualSideShow.exe opened as described above.
After this you have it in the list of simulator. Now you are ready to communicate with the weather gadget.
If you want you can use the timer to refresh automatically and save all selected data. The SideShow is refreshed every time the 'auto timer' starts and every time you click 'Check weather of saved data'. Using the codeI have created this project as a C# windows application. With this application you can retrieve all the cities and countries from the web services I used. Select one and test if your city has weather data. If you like, you can set a timer to refresh the app and the SideShow automatically. You can save your data and use it in the next session. The code follows these ideas:
Here I describe only the calls I used for the SideShow. Info: I used a free webservice from WebserviceX.NET. If the server is busy and you get the error, "service unavailable", you can see if it's working here.All the necessary code for the SideShow is in I used a
This is the sample I share that copies data to SideShow.
This is the result that you can see in your SideShow or VirtualSideShow. That's all. Points of InterestI've yet to find code on the internet that runs like the author said. If you have problems in compiling or executing the project, please leave a post. Microsoft help, installing VirtualSideShow: MSDN help, Scf Members History
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||