One of the nice things about RIA platform is its wide support for audio and video format, and that applies to Silverlight as well. Silverlight supports MP3 audio format out-of-the-box, which means that you can now add more interactivity to your rich web application by adding sound effect or background music.
There are couple of nice features that we added in WebAqua 2.0 RTM:
- Play a sound file when the WebFishEye button is clicked.
To enable this feature, simply specify the mp3 file to the AudioSource property of the WebFishEye control. See following screenshot.
When this property is assigned, WebFishEye will automatically play the specified sound file when a WebFishEye button is clicked. Thanks to Ben Hayat who suggested this nice feature 🙂
- Auto adaptive mechanism on WebFishEye.
As a good citizen of RIA, WebFishEye is designed with comprehensive support for resolution independence scenarios. Firstly, you can design the WebFishEye to use auto width. This means the control will take all available horizontal space relative to the container. There would be no problem if the available horizontal space is wide enough, as the application designer expected. The challenge is, what if the user’s screen is smaller and the number of buttons exceeded the available horizontal space?A new property MinimumButtonSize has been added in RTM version to resolve this challenge. Simply set it to a minimum size that the button could shrink down to. A good sample would be 32 pixels, or 24 pixels, so that users can still see the button clearly even when the control is in collapsed state.
The auto adaptive mechanism automatically detects the width that WebFishEye control occupy versus the width of WebFishEye’s container. When there are sufficient space, the control will use the normal size as specified in ButtonSize property. Otherwise, it will scale down (shrink) the button size proportionally in order to show all available buttons within the container dimension. The scale down process will stop until it reach the smallest button size specified in MinimumButtonSize property.
This feature is especially useful in dynamic data scenarios, eg, when the WebFishEye is databound to a collection of data, which count is unknown.