Posts Tagged ‘mobile’

Orientation aware control for Mobile

December 27, 2008

I have been involved in developing mobile web applications for almost a year and half now. In this period I developed few applications where the requirement was to change the orientation of the layout (horizontal to vertical and vice-versa) automatically based on device width. Some times (in case of new age phones like iPhone, Storm) this may be also depending on the how the device is being currently viewed.

In such scenario’s we used to break lot of our head to make the page work and yet support different orientations supported by the phone. In achieving this we used to end up having either two layouts or change the controls location based on the current orientation of the phone/device. This is really a time consuming job and very boring job for a person like me.

Today, I found a user control called Orientation Aware Control, which automatically does this job for us. Although this is not free control, it supports classic phones to the Windows Mobile 6.0/6.1.

From OAC website:

The Orientation Aware Control allows designing and coding a single control or form with multiple layouts or skins that are automatically applied at run-time (and design-time) according to the available form factor, resolution and orientation. Its outstanding Visual Studio forms and user control designer integration and zero-code adaptive UI behavior make the Orientation Aware Control a must-have companion for any mobile shop targeting multiple devices, bringing back the productivity you need to focus on growing your business.

Advertisements