Vectorlight News

  • Chat App Converted to HTML and JQuery
    Sep 08, 2011

    Converted from Silverlight to HTML and Javascript/JQuery is the Vectorlight Chat App. Login using your Vectorlight password to chat using your username and avatar.

  • HTML5 iPhone,Android Big Guns Tower Defense
    Jul 02, 2011

    Big Guns has made the leap from Windows Phone 7 (XNA) to HTML5 so you can now play it on your iPhone, Android and other HTML5 compatible devices.

  • HTML5 Games - Word Poppers and Batty
    Jun 04, 2011

    As the take-up of HTML5 quickens (74% of users currently have a browser capable of HTML5 Canvas) we present two more games for both your browser and mobile.

  • Big Guns Tower Defense on Windows Phone 7
    May 06, 2011

    Coming soon to Windows Phone 7 is an XNA port of the popular Vectorlight tower defense game Super Tower Defense. Whilst retaining many of the graphical and gameplay features of the original Silverlight game.

  • Wakacube WP7 Update
    Apr 26, 2011

    Released to the Windows Phone 7 marketplace today is Version 1.1 of Wakacube the 3D physics game of skill. Included in the update are more levels (30 in total) and new mode Wakatime which generates random crate structures to keep players entertained long after the levels have been completed.

  • Home Page News
mmazzieri
mmazzieri
Setting up a Menu with more than 2 levels Posted: Sep 06, 2010
 

Hi,

I'm trying to set my main menu so one of its elements has 3 levels of items. So far, I can't get it to work: the items in the third level show up overlapping on top of the icon column and the ItemSelected event doesn't fire when I click on them.


Here is some code:

<liquidMenu:MainMenuItem ID="PhoneMenu" Text="{Binding Path=LocalizedStrings.PhoneMenu}" Foreground="White" Visibility="{Binding MainMenuVisible}" ShowChildMenuOnHover="True">

                            <liquidMenu:Menu>

                                <liquidMenu:MenuItem ID="PhoneAvailable" Text="{Binding Path=LocalizedStrings.PhoneAvailable}" />

                                <liquidMenu:MenuItem ID="PhoneUnavailable" Text="{Binding Path=LocalizedStrings.PhoneUnavailable}" />

                                <liquidMenu:MenuDivider />

                                <liquidMenu:MenuItem ID="DialNewNumber" Text="{Binding Path=LocalizedStrings.DialNewNumber}" />

                                <liquidMenu:MenuItem ID="ViewQueue" Text="{Binding Path=LocalizedStrings.ViewQueue}" />

                                <liquidMenu:MenuItem ID="TransferCall" Text="{Binding Path=LocalizedStrings.TransferCall}">

                                    <liquidMenu:Menu>                                        

                                        <liquidMenu:MainMenuItem ID="EnglishQueue" Text="{Binding Path=LocalizedStrings.EnglishQueueMenu}" Margin="25,0,0,0" />

                                        <liquidMenu:MainMenuItem ID="SpanishQueue" Text="{Binding Path=LocalizedStrings.SpanishQueueMenu}" Margin="25,0,0,0" />

                                        <liquidMenu:MainMenuItem ID="CustomerEnglish" Text="{Binding Path=LocalizedStrings.CustomerEnglishMenu}" Margin="25,0,0,0" />

                                        <liquidMenu:MainMenuItem ID="CustomerSpanish" Text="{Binding Path=LocalizedStrings.CustomerSpanishMenu}" Margin="25,0,0,0" />

                                        <liquidMenu:MainMenuItem ID="Extension" Text="{Binding Path=LocalizedStrings.ExtensionMenu}" Margin="25,0,0,0" />                                                                                    

                                    </liquidMenu:Menu>

                                </liquidMenu:MenuItem>

...

 
 
mmazzieri
mmazzieri
RE: Setting up a Menu with more than 2 levels Posted: Sep 06, 2010
 

Got it fixed.


The problem was that I was using MainMenuItems for the third level, when I actually meant to use regular MenuItems -my bad, sorry :P


I don't know if this is a bug anyway, cause maybe it shouldn't allow MainMenuItems in any level other than the first level...

 
 
dan
dan
RE: Setting up a Menu with more than 2 levels Posted: Sep 06, 2010
 

Hi,


Thanks for sharing this.  I agree, we could force the type of an item to be a Menu type rather than what it is currently which is an object type.


Thanks!

 
 
tahmad
tahmad
RE: Setting up a Menu with more than 2 levels Posted: Mar 08, 2011
 

Hi

I am new to these controls, can you please help me how can i bind this menu control with hirerachical data structure rather

hard conding my menus and menuitems,I want to show N-Level submenus based on my data source i am providing to it, one way is to iterate the collection and add controls on it , but i want to acieve it through data binding so that i can work easily while setting and getting data context, is there any way ?

regads,

Tauseef.