www.RoomSay.com

HTML5 and CSS3 enabled 3D web experience at roomsay.com:

RoomSay.com 3D Web Experience RoomSay.com 3D Web Experience DIY

Vectorlight News

  • 3D CSS used to Create Website
    Feb 08, 2014

    With the CSS 3D effects being implemented in modern browsers RoomSay.com takes this new technology and enables you to map your traditional 2D content onto the walls of a 3D room.

  • 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.

  • Home Page News

Silverlight Menu (Popup)

This free popup Menu control provides Silverlight developers with an easy to use and customizable popup menu system with a familiar default style.

This Silverlight only Menu Control is easy to implement on your Silverlight driven website and is also customizable to provide a visual feel suitable for any site design.

Silverlight Popup Menu

If you are developing using Silverlight 4 our tutorials sections contains a demo of the Popup Menu when used in conjunction with the right mouse click event to provide an easy way to implement Silverlight 4 Context Menus.

To use the Menu control you will need to add a reference to Liquid.Menu.dll in your project.


How to Use the Menu Control

To use the Menu on your Silverlight page:

<UserControl x:Class="Menu.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:liquidMenu="clr-namespace:Liquid;assembly=Liquid.Menu"
    Width="400" Height="300">
    <Canvas x:Name="LayoutRoot" Background="White">
        <Button Canvas.Left="20" Canvas.Top="20" Content="Show" Width="60" Height="20" Click="Button_Click" />
        <liquidMenu:Menu x:Name="popupMenu" Canvas.Left="40" Canvas.Top="40" ItemSelected="MenuList_ItemSelected" Visibility="Collapsed">
            <liquidMenu:MenuItem ID="cut" Icon="images/cut.png" Text="Cut" Shortcut="Ctrl+X" />
            <liquidMenu:MenuItem ID="copy" Icon="images/copy.png" Text="Copy" Shortcut="Ctrl+C" />
            <liquidMenu:MenuItem ID="paste" Icon="images/paste.png" Text="Paste" Shortcut="Ctrl+V" />
            <liquidMenu:MenuDivider />
            <liquidMenu:MenuItem ID="new" Text="New">
                <liquidMenu:Menu>
                    <liquidMenu:MenuItem ID="pdf" Icon="images/pdf.png" Text="PDF Document" />
                    <liquidMenu:MenuItem ID="excel" Icon="images/xls.png" Text="Excel Spreadsheet" />
                    <liquidMenu:MenuItem ID="word" Icon="images/doc.png" Text="Word Document" />
                </liquidMenu:Menu>
            </liquidMenu:MenuItem>
        </liquidMenu:Menu>
    </Canvas>
</UserControl>


Here we have a button which when clicked displays the Menu.  The Menu can contain any number of child options and also nested menus.  Images and Keyboard shortcuts can also be rendered with the menu title.

using System;
using System.Collections.Generic;
using System.Linq;
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.Shapes;

using Liquid;

namespace Menu
{
    public partial class Page : UserControl
    {
        public Page()
        {
            InitializeComponent();
        }

        private void MenuList_ItemSelected(object sender, MenuEventArgs e)
        {
            switch (e.Tag.ToString())
            {
                case "cut":
                    // TODO: Cut functionality
                    break;
                case "copy":
                    // TODO: Copy functionality
                    break;
                default:
                    break;
            }
            popupMenu.Hide();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            popupMenu.Show();
        }
    }
}


Using the Menu with Grids

The above solution works fine when working inside a Canvas, however for Grid layouts it will not display correctly.  Here is the XAML modified to use the TranslateTransform property in order to position the menu within a Grid:

<Grid x:Name="LayoutRoot" Background="White">
    <Button Content="Show" Width="60" Height="20" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="20 20 0 0" Click="Button_Click" />
    <liquidMenu:Menu x:Name="popupMenu" HorizontalAlignment="Left" VerticalAlignment="Top" ItemSelected="MenuList_ItemSelected" Visibility="Collapsed">
        <liquidMenu:Menu.RenderTransform>
            <TranslateTransform X="40" Y="40" />
        </liquidMenu:Menu.RenderTransform>

        <liquidMenu:MenuItem ID="cut" Icon="images/cut.png" Text="Cut" Shortcut="Ctrl+X" />
        <liquidMenu:MenuItem ID="copy" Icon="images/copy.png" Text="Copy" Shortcut="Ctrl+C" />
        <liquidMenu:MenuItem ID="paste" Icon="images/paste.png" Text="Paste" Shortcut="Ctrl+V" />
        <liquidMenu:MenuDivider />
        <liquidMenu:MenuItem ID="new" Text="New">
            <liquidMenu:Menu>
                <liquidMenu:MenuItem ID="pdf" Icon="images/pdf.png" Text="PDF Document" />
                <liquidMenu:MenuItem ID="excel" Icon="images/xls.png" Text="Excel Spreadsheet" />
                <liquidMenu:MenuItem ID="word" Icon="images/doc.png" Text="Word Document" />
            </liquidMenu:Menu>
        </liquidMenu:MenuItem>
    </liquidMenu:Menu>
</Grid>

Example Silverlight Menu Control:

Silverlight Menu Control

Latest Forum Posts

Here are latest posts from around the forums, if you have a question about any of the Liquid controls you can get your answers in the Forum.

Zacha posted on MainMenu and Opactiy

I can not solve the issue of opacity you the texts of each of the items.

It always appears as disabled.

Someone found the solution?

dineshkumarj86 posted on Positioning popup menus to appear left

I would like to know whether popup menu for the context menu can be made to appear left side or right side depending on the space available in the canvas(i.e., Parent of Context Menu). If so what property or method that i have to use to achieve the same.

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!

akumok posted on Menu behind grid

Hi,


I have almost exact behavior as you cover in previous thread but your solution for changing canvas ZIndex property does not affect anything, when clicked menu still shows behind. Below is my code:


<Canvas x:Name="LayoutRoot" Background="White">

        <liquidMenu:MainMenu  x:Name="mainMenu" ItemSelected="mainMenu_ItemSelected">

            <liquidMenu:MainMenu.Items>

                <liquidMenu:MainMenuItem Text="Structure">

                    <liquidMenu:Menu>

                        <liquidMenu:MenuItem  x:Name="mnuAdd" ID="item11" Icon="images/New16.png" Text="Add new" />

                        <liquidMenu:MenuItem ID="item12" Icon="images/save.png" Text="Update" />

                        <liquidMenu:MenuItem ID="item13" Text="Clear form" />

                        <liquidMenu:MenuDivider />

                        <liquidMenu:MenuItem ID="item14" Text="Exit" />

                    </liquidMenu:Menu>

                </liquidMenu:MainMenuItem>

            </liquidMenu:MainMenu.Items>

        </liquidMenu:MainMenu>

        <controlsToolkit:BusyIndicator HorizontalAlignment="Center" VerticalAlignment="Center"

                        Name="busyIndicator" IsBusy="False">

            

        <Grid>

        <Grid.RowDefinitions>

             <RowDefinition Height="40"/>

             <RowDefinition Height="40"/>

            <RowDefinition Height="*"/>

        </Grid.RowDefinitions>

                        <StackPanel Grid.Row="1" HorizontalAlignment="Left" Orientation="Horizontal">

            <TextBlock Height="23" HorizontalAlignment="Center"  Margin="385,0,5,0" Text="SortID:"/>

            <TextBox Height="23" Name="txtSortID" Width="89" Margin="0,0,15,0"/>

            <Button x:Name="btnFind" Content="Find.." Height="23" Width="75"  Click="btnFind_Click"/>

           </StackPanel>

        <StackPanel Grid.Row="2" x:Name="dForm" HorizontalAlignment="Left" VerticalAlignment="Top">

            <sdk:TabControl Height="auto" HorizontalAlignment="Left" Name="tabControl1" Margin="20,0,5,0" VerticalAlignment="Top" Width="auto">


                <sdk:TabItem Header="General" ToolTipService.ToolTip="General Information">

                    <Grid>

                        <Grid.RowDefinitions>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="*"/>

                        </Grid.RowDefinitions>

                        <StackPanel Orientation="Horizontal"  Grid.Row="0">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,5,25,0" Text="XPath:" VerticalAlignment="Top"/>

                            <TextBox Height="39" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtXpath" VerticalAlignment="Top" Width="200" TextWrapping="Wrap"

                                     Text="{Binding XPath, Mode=TwoWay}"/>

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="15,5,13,0" Name="textBlock3" Text="Parent Container:" VerticalAlignment="Top"/>

                            <TextBox Height="39" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtPContainer" VerticalAlignment="Top" Width="200"

                                     Text="{Binding ParentContainer, Mode=TwoWay}"/>

                        </StackPanel>


                        <StackPanel Orientation="Horizontal"  Grid.Row="1">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,5,10,0" Name="textBlock4" Text="DataPoint"/>

                            <TextBox Height="23" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtDataPoint" VerticalAlignment="Top" Width="200"

                                     Text="{Binding DataPoint, Mode=TwoWay}"/>

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="15,5,10,0" Text="MISMO Definition:" VerticalAlignment="Top"/>

                            <TextBox Height="39" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtMismoDef" VerticalAlignment="Top" Width="200" TextWrapping="Wrap"

                                     Text="{Binding MISMODefinition, Mode=TwoWay}"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal" Grid.Row="2">

                            <TextBlock Height="40"  HorizontalAlignment="Left" Margin="5,5,10,0" Text="Loan Role Type:" VerticalAlignment="Top" Width="60"/>

                            <TextBox Height="23" HorizontalAlignment="Right" Margin="0,10,10,0" Name="txtLoanRoleType" VerticalAlignment="Top" Width="120"

                                     Text="{Binding LoanRoleType, Mode=TwoWay}"/>

                            <TextBlock Height="40" HorizontalAlignment="Left" Margin="120,5,10,0" Name="textBlock6" Text="Loan State Type:" TextWrapping="Wrap" VerticalAlignment="Top" Width="60" />

                            <TextBox Height="23" HorizontalAlignment="Right" Margin="12,10,10,0" Name="txtLoanStateType" VerticalAlignment="Top" Width="141"

                                     Text="{Binding LoanStateType, Mode=TwoWay}"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal" Grid.Row="3">

                            <TextBlock Height="40"  HorizontalAlignment="Left" Margin="5,5,10,0" Text="Party Role Type:" VerticalAlignment="Top" Width="60" TextWrapping="Wrap"/>

                            <TextBox Height="23" HorizontalAlignment="Right" Margin="0,10,10,0" Name="txtPartyRoleType" VerticalAlignment="Top" Width="120"

                                     Text="{Binding PartyRoleType, Mode=TwoWay}"/>

                            <TextBlock Height="40" HorizontalAlignment="Left" Margin="10,5,5,0" Text="ULDD Condition:" TextWrapping="Wrap" VerticalAlignment="Top" Width="60" />

                            <TextBox Height="23" HorizontalAlignment="Right" Margin="5,10,5,0" Name="txtULDDCondition" VerticalAlignment="Top" Width="41"

                                     Text="{Binding ULDDCondition, Mode=TwoWay}"/>

                            <TextBlock Height="40" HorizontalAlignment="Left" Margin="10,5,1,0" Text="ULDD Format:" TextWrapping="Wrap" VerticalAlignment="Top" Width="60" />

                            <TextBox Height="23" HorizontalAlignment="Right" Margin="5,10,10,0" Name="txtULDDFormat" VerticalAlignment="Top" Width="141"

                                     Text="{Binding ULDDFormat, Mode=TwoWay}"/>

                        </StackPanel>

                    </Grid>

                </sdk:TabItem>

                <sdk:TabItem Header="FNM" ToolTipService.ToolTip="Fannie Mae specific information">

                    <Grid>

                        <Grid.RowDefinitions>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="*"/>

                        </Grid.RowDefinitions>

                        <StackPanel Orientation="Horizontal"  Grid.Row="0">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,5,5,0" Text="Condition:" VerticalAlignment="Top"/>

                            <TextBox Height="23" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtFNMCondition" VerticalAlignment="Top" Width="50"

                                     Text="{Binding FNMCondition, Mode=TwoWay}"/>

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="15,5,5,0" Text="Condition Details:" VerticalAlignment="Top"/>

                            <TextBox Height="23" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtFNMConditionDetails" VerticalAlignment="Top" Width="200"

                                     Text="{Binding FNMConditionDetails, Mode=TwoWay}"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal"  Grid.Row="1">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,5,5,0" Text="Notes:" VerticalAlignment="Top"/>

                            <TextBox Height="39" HorizontalAlignment="Left" Margin="25,5,0,0" Name="txtFNMNotes" VerticalAlignment="Top" Width="375"

                                     Text="{Binding FNMNotes, Mode=TwoWay}"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal" Grid.Row="2">

                            <TextBlock Height="40" HorizontalAlignment="Left" Margin="5,5,2,0" Text="ULDD Format:" TextWrapping="Wrap" VerticalAlignment="Top" Width="60" />

                            <TextBox Height="23" HorizontalAlignment="Right" Margin="5,10,10,0" Name="txtFNMULDDFormat" VerticalAlignment="Top" Width="141"

                                     Text="{Binding FNMULDDFormat, Mode=TwoWay}"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal"  Grid.Row="3">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,25,5,5" Text="12-11-2011 related" VerticalAlignment="Top"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal"  Grid.Row="4">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,5,5,0" Text="Condition:" VerticalAlignment="Top"/>

                            <TextBox Height="23" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtFNM12112011Condition" VerticalAlignment="Top" Width="50"

                                     Text="{Binding FNM12112011Condition, Mode=TwoWay}"/>

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="15,5,5,0" Text="Condition Details:" VerticalAlignment="Top"/>

                            <TextBox Height="23" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtFNM12112011ConditionDetails" VerticalAlignment="Top" Width="200"

                                     Text="{Binding FNM12112011ConditionDetails, Mode=TwoWay}"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal"  Grid.Row="5">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,5,5,0" Text="Notes:" VerticalAlignment="Top"/>

                            <TextBox Height="39" HorizontalAlignment="Left" Margin="25,5,0,0" Name="txtFNM12112011Notes" VerticalAlignment="Top" Width="375"

                                     Text="{Binding FNM12112011Notes, Mode=TwoWay}"/>

                        </StackPanel>

                    </Grid>


                </sdk:TabItem>

                <sdk:TabItem  Header="FRE" ToolTipService.ToolTip="Freddie Mac specific information">

                    <Grid Name="User">

                        <Grid.RowDefinitions>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="100*"/>

                            <RowDefinition Height="*"/>

                        </Grid.RowDefinitions>

                        <StackPanel Orientation="Horizontal"  Grid.Row="0">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,5,5,0" Text="Condition:" VerticalAlignment="Top"/>

                            <TextBox Height="23" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtFRECondition" VerticalAlignment="Top" Width="50"

                                     Text="{Binding FRECondition, Mode=TwoWay}"/>

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="15,5,5,0" Text="Condition Details:" VerticalAlignment="Top"/>

                            <TextBox Height="23" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtFREConditionDetails" VerticalAlignment="Top" Width="200"

                                     Text="{Binding FREConditionDetails, Mode=TwoWay}"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal"  Grid.Row="1">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,5,5,0" Text="Notes:" VerticalAlignment="Top"/>

                            <TextBox Height="39" HorizontalAlignment="Left" Margin="25,5,0,0" Name="txtFRENotes" VerticalAlignment="Top" Width="375"

                                     Text="{Binding FRENotes, Mode=TwoWay}"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal" Grid.Row="2">

                            <TextBlock Height="40" HorizontalAlignment="Left" Margin="5,5,2,0" Text="ULDD Format:" TextWrapping="Wrap" VerticalAlignment="Top" Width="60" />

                            <TextBox Height="23" HorizontalAlignment="Right" Margin="5,10,10,0" Name="txtFREULDDFormat" VerticalAlignment="Top" Width="141"

                                     Text="{Binding FREULDDFormat, Mode=TwoWay}"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal"  Grid.Row="3">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,25,5,5" Text="12-11-2011 related" VerticalAlignment="Top"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal"  Grid.Row="4">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,5,5,0" Text="Condition:" VerticalAlignment="Top"/>

                            <TextBox Height="23" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtFRE12112011Condition" VerticalAlignment="Top" Width="50"

                                     Text="{Binding FRE12112011Condition, Mode=TwoWay}"/>

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="15,5,5,0" Text="Condition Details:" VerticalAlignment="Top"/>

                            <TextBox Height="23" HorizontalAlignment="Left" Margin="5,5,0,0" Name="txtFRE12112011ConditionDetails" VerticalAlignment="Top" Width="200"

                                     Text="{Binding FRE12112011ConditionDetails, Mode=TwoWay}"/>

                        </StackPanel>

                        <StackPanel Orientation="Horizontal"  Grid.Row="5">

                            <TextBlock Height="23" HorizontalAlignment="Left" Margin="5,5,5,0" Text="Notes:" VerticalAlignment="Top"/>

                            <TextBox Height="39" HorizontalAlignment="Left" Margin="25,5,0,0" Name="txtFRE12112011Notes" VerticalAlignment="Top" Width="375"

                                     Text="{Binding FRE12112011Notes, Mode=TwoWay}"/>

                        </StackPanel>

                    </Grid>

                </sdk:TabItem>

            </sdk:TabControl>

        </StackPanel>

        </Grid>

        </controlsToolkit:BusyIndicator>

    </Canvas>

myMainMenu.CloseChildren() is great. Thanks in advance!

jimhamilton posted on Ambiguous

Hi Dan


Can you give me any guidance on this error. I'm using the RichTextEditor which was working fine. I then imported the Silverlight time picker control into the toolbox to use it and suddenly got this error.


The error show in Dim item As MenuItem = DirectCast(e.Parameter, MenuItem)


Error 2 'MenuItem' is ambiguous, imported from the namespaces or types 'Liquid, System.Windows.Controls'. C:\Users\Jim\Documents\Visual Studio 2010\Projects\NottsStats5\NottsStats5\Views\VideoChildWindow.xaml.vb 1192 21 NottsStats5


For some unknown reason  the system suddenly doesn't like the declaration Dim item as MenuItem!

 

Any thoughts?


Cheers Jim

Rate this: 

1 Star 2 Star 3 Star 4 Star 5 Star
55 Ratings / 2.1 Average

Tweets

Silverlight Controls

  • Rich TextBox

    Create and edit rich content with this slick and expandable Rich TextBox...

  • TreeView

    This easy to use TreeView comes with drag and drop, sorting, searching and much more...

  • Context Menu

    You too can have cool popup context menus in your Silverlight applications...

  • Resizable Dialog

    Draggable and resizable popup dialogs are what serious Silverlight developers need...

  • Spell Checker

    Real-time spell checking in Silverlight? We did it first here...