Latest News

  • Super Tower Defense 2 Game
    Sep 03, 2010

    New to the games section is Super Tower Defense 2. Featuring more maps, new units and bigger explosions.

  • Super Cards Online Multiplayer Game
    Aug 13, 2010

    Released today in the games section is the new Super Cards multiplayer card game. The aim of the game is to get rid of all your playing cards before your opposition.

  • Silverlight Online Chat
    Jul 24, 2010

    Today we launch the new Silverlight Live Chat application demonstrating the Liquid RichTextBox and Emoticon replacements.

  • New Super Shoot Em Up 2 Game
    Jun 29, 2010

    Added to the Games section is the new Super Shoot 'Em Up 2 game. Take control of your tank with the aim to defeat the computer controlled opponents. Features all new weapons, levels and Battle Mode!

  • Silverlight 4 Controls V5.3.2 Released
    Jun 28, 2010

    This release contains several fixes raised in the forums.

milosv
milosv
ContextMenu silverlight 4 out of browser mode Posted: Jun 07, 2010
 

Hi,

i use Silverlight 4 Liquid Controls ContextMenu on TreeView and in browser mode it works fine. I need to convert my application to out of browser mode but ContextMenu on TreeView doesn't work and plug-in shows silverlight oob menu.

What can i do?


Thank in advance

 
 
milosv
milosv
RE: ContextMenu silverlight 4 out of browser mode Posted: Jun 08, 2010
 

Hi,

I've found a solution. In Silverlight 4 thare are MouseRightButtonDown and i repalce MousePlus (used in silverlight 3) whit this event:

          

treeView.MouseRightButtonDown += Mouse_RightMouseClick;


And Mouse_RightMouseClick method is:


private void Mouse_RightMouseClick(object sender, MouseButtonEventArgs e)

 {

           Point p = e.GetPosition(this);

            _node = treeView.GetNodeAtPoint(p) as Node;


            if (_node != null)

            {

                _node.IsSelected = true;

                treeView.Selected = _node;

                contextMenuTreeView.SetValue(Canvas.LeftProperty, p.X);

                contextMenuTreeView.SetValue(Canvas.TopProperty, p.Y);

                contextMenuTreeView.Show();

                contextMenuTreeView.Focus();

            }


            e.Handled = true;

 }


Bye

Milos

 
 
dan
dan
RE: ContextMenu silverlight 4 out of browser mode Posted: Jun 18, 2010
 

Hi Milos,


Thanks for this.  The MousePlus class was implemented in SL3 to overcome the lack of a right mouse click but as you've seen Silverlight 4 now has native support for the right mouse button.


Thanks!

 
 

Rate this page: 

1 Star 2 Star 3 Star 4 Star 5 Star
2 Ratings / 4.0 Average