01 August 2013

Menu is going behind Silverlight control


If your menu is going behind Silverlight control then you have two options:

Option 1: Set 'Windowless=true' but this option has lots of limitations including performance.
Ref: http://msdn.microsoft.com/en-us/library/cc838156(v=vs.95).aspx

Option 2 (Recommended): Use empty iframe behind your menu. z-index of iframe must be less than to your menu.

Basic concept: "When you take your mouse over to the menu then your menu will be shown at that time make your iframe visible behind your menu."

I am sharing a very basic sample. You have to customize it based on requirement.

Sample: TestMenu.htm


With the help of Muhammad Furqan Khan and Muhammad Fahed Khan, we found iframe based solution. Thank you guys!

2 comments:

  1. How can we apply your method directly to an asp.net menu control: refer to my post in msdn:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/c3702ba8-80bf-4fc8-890b-ec5a96447b30/aspnet-menu-control-submenus-hide-by-silverlight-application-object-param-windowless-set-to-true?forum=silverlightnet&prof=required

    thanks

    Joel

    ReplyDelete
  2. Hi Joel,

    I have created a sample for Asp.Net menu. Try to understand how it is working so you can change it based on your requirement. Thanks.

    Sample for ASP.Net Menu:
    https://www.dropbox.com/s/8ykljwmju1kd5i6/TestASPMenu.aspx?dl=0

    ReplyDelete