locked
Silverlight 3 Menus RRS feed

  • Question

  • Hi,

    I am new to Silverlight and xaml, so I started a project using the Silverlight 3 Business Application template because of the navigation setup. This template gives me hyperlink menu buttons across the top of the page. I can add new pages and add new hyperlinks to point to those new pages but what I really want is a dropdown menu. Is it possible to set up a dropdown menu using hyperlinks (the current code structure) and still have the navigation framework still work. This is the hyperlink code that is provided by the template. I am using Visual Studio 2008 in VB and Expression Blend 3 with the October release of the Silverlight toolkit.

    <Rectangle x:Name="Divider1" Style="{StaticResource DividerStyle}"/>

    <HyperlinkButton x:Name="Link4" Style="{StaticResource LinkStyle}"

    NavigateUri="/Objectives" TargetName="ContentFrame" Content="Objectives"/>

    <Rectangle x:Name="Divider2" Style="{StaticResource DividerStyle}"/>

    <HyperlinkButton x:Name="Link3" Style="{StaticResource LinkStyle}"

    NavigateUri="/Administration" TargetName="ContentFrame" Content="Admin"/>

    <Rectangle x:Name="Divider3" Style="{StaticResource DividerStyle}"/>

    <HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}"

    NavigateUri="/About" TargetName="ContentFrame" Content="about"/>

    Any help would be greatly apprieciated.

    Thanks

    Rick 

     

    Wednesday, November 25, 2009 11:03 AM

Answers

  • Hi,

        Em, this is a link of  a really good dropdown menu example of Silverlight.

        http://www.codeproject.com/KB/silverlight/SL2DropDownMenu.aspx

        It is open source you can download the source code.

        And here is my thought, you can register mouse enter events to these hyperlink button.

        And when mouse entered display a popup(this is your dropdown).

    Best Regards

    Sunday, November 29, 2009 11:25 PM

All replies

  • Hi,

        Em, this is a link of  a really good dropdown menu example of Silverlight.

        http://www.codeproject.com/KB/silverlight/SL2DropDownMenu.aspx

        It is open source you can download the source code.

        And here is my thought, you can register mouse enter events to these hyperlink button.

        And when mouse entered display a popup(this is your dropdown).

    Best Regards

    Sunday, November 29, 2009 11:25 PM
  • Thanks for the responce...I will give that a try.

    Wednesday, December 2, 2009 9:40 AM