Silverlight equivalent of CSS list menus

Using CSS to style HTML list items as menus is considered good fashion, and I wondered if there is an equivalent in Silverlight.

Here is an inlined example. It can be refactored into a Style and stored away in the Resources section (see MSDN example)

<ListBox Height="100" Name="ListBox1" Width="120">
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel Orientation="Horizontal">
                            </StackPanel>
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                    <ListBoxItem Content="abc" />
                    <ListBoxItem Content="def" />
                    <ListBoxItem Content="hij" />
                </ListBox>


About this entry