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
memphis
memphis
Access to menu items Posted: Oct 13, 2009
 

Thanks for the control, but i have a question.

How can I access to Menu Items item1 and item2 to enable/disable them according to an external condition?


                                <liquidMenu:MainMenu  ItemSelected="SituacionesMenu_ItemSelected" Width="150"

                                                     Height="18"

                                                     HorizontalAlignment="Left" Padding="0"

                                                     Canvas.ZIndex="200000">

                                        <liquidMenu:MainMenu.Items>

                                            <liquidMenu:MainMenuItem x:Name="SituacionesMenu" Text="Situaciones »" Foreground="Blue">                                           

                                                <liquidMenu:Menu>

                                                    <liquidMenu:MenuItem ID="item1" Icon="Images/map.png"

                                                                         IsEnabled="False"

                                                                         Text="Representar nivel de servicio"

                                                                         />

                                                    <liquidMenu:MenuDivider />

                                                    <liquidMenu:MenuItem ID="item2" Icon="Images/map.png"

                                                                         IsEnabled="False"

                                                                         Shortcut="Ctrl+R" Text="Representar carga de la situación"

                                                                         />

                                                </liquidMenu:Menu>

                                            </liquidMenu:MainMenuItem>

                                        </liquidMenu:MainMenu.Items>

                                    </liquidMenu:MainMenu>

 
 
dan
dan
RE: Access to menu items Posted: Oct 14, 2009
 

Hi,


Firstly give your MainMenu a name such as:


x:Name="menu"


You can then alter the enabled status using something like this:


menu.SetEnabledStatus("item1", true);


There is also a Get() method that can be used to retrieve the actual menu item control, so for example to alter the visibility setting of item1:


menu.Get("item1").Visibility = Visibility.Visible;


Hope this helps!

 
 
memphis
memphis
RE: Access to menu items Posted: Oct 14, 2009
 

Thank you dan,

that is exactly what i wanted.


I have another question: is there any way to make the menu item grey when it is disabled? (like windows menus when they are disabled)

 
 
dan
dan
RE: Access to menu items Posted: Oct 14, 2009
 

Your welcome.  As for controlling the disabled menu items color, you cannot set the actual disabled color at the moment, however you can set the disabled opacity using this static property:


MainMenu.DisabledOpacity = 0.4;


This should make it clear what is disabled and what is not, the default value for this is 0.7 which is not really noticable so I will alter this in the next version, but the above line will work for you.


Thanks!

 
 
TuanAnh207
TuanAnh207
RE: Access to menu items Posted: Aug 23, 2010
 

this.testMenu.Get("System_LogOut").IsEnabled = false;

This is what i have done before. Hope it can help you in some way !

 
 

Rate this: 

1 Star 2 Star 3 Star 4 Star 5 Star
9 Ratings / 2.7 Average