StandAlone Menu(Click through OR Dynamic Resize)

2 posts, 0 answers
  1. Jaco
    Jaco avatar
    8 posts
    Member since:
    Oct 2010

    Posted 05 Nov 2010 Link to this post


    I have a problem with a standalone menu on my Silverlight dashboard.

    I have four silverlight controls loading at a time, so attaching the MainMenu to a single one would be counter-productive.

    I've been attempting to create a main-menu at the top of my html page.

    Problem 1:
    When I use "windowless=true" and "PluginBackground=Transparent" to display the Silverlight Menu over my HTML Code, I cannot seem to click through to the background data. I've searched for solutions to this, and have come up with nothing.
    From what I understand, basic Silverlight doesn't not provide any form of "Click Through Transparent" options.

    Do you possibly have a solution for this?

    Problem 2:
    Barring the fact that Click Through doesn't work and never will, I would like to attempt to "Dynamically Resize Silverlight Control to fit the contents".
    Unfortunately I've come up with nothing that would allow me to return the actual scrolling height of an open menu to the Javascript and resize the Silverlight Control Object.

    Does anyone have any solution to this?
  2. Jaco
    Jaco avatar
    8 posts
    Member since:
    Oct 2010

    Posted 08 Nov 2010 Link to this post

    In the end I created an event on the "SubMenuOpen" that calculates the height of the window, by counting the items in the submenu.

    It then sends the height through to a javascript event which resizes the control.

    "SubMenuClose" sets the silverlight control's height to 25 again.
Back to Top