Wednesday, December 16, 2009

Scrolling Horizontal Menu in Silverlight 2.0

This is my first Silverlight project and I'm amazed at how long it took to find some sample/demo to carry out my task.

I am looking for a simple horizontal menu that scrolls when I hover my mouse over the respective arrows. This is because I have too many icons in my fixed-width menu and I need a way to display them when necessary.

The simplest (but ugly) method is to define the icons in a StackPanel then embed the StackPanel in a ScrollViewer. The default-looking scrollbar appears to do the job.

Here's an example that allows me to define more pleasant looking scrolling menus. It is actually a video playlist but the scroll widget fulfills my requirements. I'm still in the midst of customising that scrollwidget to handle mouseover actions and other tweaks. Stay tuned!

My extension post is here.


No comments:

Post a Comment