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
jfcjunior
jfcjunior
The main menu is not rendered, is invisible. URGENT Posted: Jan 12, 2012
 

Hello my friends,


 I beg of you to help resolve this issue.


 The menu does not appear anywhere in the main menu is not rendered, is invisible.

 I tried several ways to follow various tutorials, but does not show the menu.


 Below is the code:


_______________________________________________________________________________________________


<UserControl xmlns:my="clr-namespace:Hubble" x:Class="Hubble.MainPage"

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

    mc:Ignorable="d" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"

    xmlns:liquidMenu="clr-namespace:Liquid;assembly=Liquid.Menu"                                  

    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" d:DesignHeight="601" d:DesignWidth="799" Margin="0,0,0,0" xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input">


    <Grid Grid.Row="2" x:Name="LayoutRoot" Width="799" Height="601" ShowGridLines="True" Canvas.ZIndex="1">

        <liquidMenu:MainMenu Background="#FFE8D3D3" Height="25" Margin="0,4" Canvas.ZIndex="3" HorizontalContentAlignment="Stretch" ID="MnuSystem" x:Name="MnuPrincipal" Visibility="Visible" VerticalContentAlignment="Center" VerticalAlignment="Top" HorizontalAlignment="Stretch">

            <liquidMenu:MainMenu.Items>

                <liquidMenu:MainMenuItem ID="MnuSecurity" Text="System" Height="31" Width="536" Visibility="Visible" VerticalAlignment="Center" HorizontalContentAlignment="Left">

                    <liquidMenu:Menu>

                        <liquidMenu:MenuItem ID="MnuLogin" Shortcut="Ctrl+L" Text="Login" />

                        <liquidMenu:MenuDivider />

                        <liquidMenu:MenuItem ID="MnuLogOut" Shortcut="Ctrl+G" Text="LogOut" />

                        <liquidMenu:MenuDivider />

                        <liquidMenu:MenuItem ID="MnuQuit" Text="Quit" />

                    </liquidMenu:Menu>

                </liquidMenu:MainMenuItem>

            </liquidMenu:MainMenu.Items>

        </liquidMenu:MainMenu>


        <controls:TabControl Height="28" HorizontalAlignment="Left" Name="TabDeskTop" VerticalAlignment="Bottom" Width="799" TabStripPlacement="Bottom" FontSize="10" Grid.Row="1">

            <controls:TabItem Header="Login" Name="Tab001" Canvas.ZIndex="2" />

        </controls:TabControl>

    </Grid>

</UserControl>



using System;

using System.Collections.Generic;

using System.Net;

using System.Windows;

using System.Windows.Controls;

using System.Windows.Documents;

using System.Windows.Input;

using System.Windows.Media;

using System.Windows.Media.Animation;

using System.Windows.Navigation;

using System.Windows.Shapes;

using Liquid;


namespace Hubble

{


    public partial class MainPage : UserControl

    {


        public MainPage()

        {


            InitializeComponent();

            App.Current.Host.Content.Resized += new EventHandler(Content_Resized);


        }


        void Content_Resized(object sender, EventArgs e)

        {


            this.Width = App.Current.Host.Content.ActualWidth;  

            this.Height = App.Current.Host.Content.ActualHeight;

            LayoutRoot.Width = App.Current.Host.Content.ActualWidth;

            LayoutRoot.Height = App.Current.Host.Content.ActualHeight;

            TabDeskTop.Width = App.Current.Host.Content.ActualWidth;


        }


        private void MnuSystem_ItemSelected(object sender, MenuEventArgs e)

        {


            switch (e.Tag.ToString())

            {

                case "MnuLogin":

                    {

                        FrmLogin oFrmLogin;

                        oFrmLogin = new FrmLogin();

                        oFrmLogin.ParentLayoutRoot = LayoutRoot;

                        oFrmLogin.HasCloseButton = false;

                        oFrmLogin.ResizeMode = ResizeMode.CanMinimize;

                        oFrmLogin.Show();

                        break;

                    }

                case "MnuLogOut":

                    // ??? Disconect DataBase PostgreSQL                  

                    break;

                case "MnuQuit":

                    // ??? Exit Page Browser

                    break;

            }


        }


    }


}


_______________________________________________________________________________________________


 Thank you!

 
 

Rate this: 

1 Star 2 Star 3 Star 4 Star 5 Star
1 Rating / 5.0 Average