This is a migrated thread and some comments may be shown as answers.

StandAlone Menu(Click through OR Dynamic Resize)

1 Answer 42 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jaco
Top achievements
Rank 1
Jaco asked on 05 Nov 2010, 09:09 AM
Hi,

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?

1 Answer, 1 is accepted

Sort by
0
Jaco
Top achievements
Rank 1
answered on 08 Nov 2010, 10:06 AM
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.
Tags
Menu
Asked by
Jaco
Top achievements
Rank 1
Answers by
Jaco
Top achievements
Rank 1
Share this question
or