Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6078203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:48:23+00:00 2026-05-23T10:48:23+00:00

I am having the following problem: I have a web page hosting silverlight content.

  • 0

I am having the following problem:

I have a web page hosting silverlight content. The silverlight content is navigation aware, so it will always be the same html page and the same silverlight control. The content however will of course change when the user is navigating from one page inside the control to another.
Different pages have different size requirements and in some cases the final height of the content is unknown because the content is coming from a web service.

I want the height of the silverlight content to be dynamically according to what it actually needs. I saw many solutions to make the silverlight control fit the browser window, but I want the silverlight content to only have the actual height it needs and overflow when necessary, so that I can use the browsers scrollbars.

The page should also have a static background image, which is giving me some problems when the object tag is not exactly the size of the silverlight content.

The effect I want to achieve is more or less like in this web page:
http://www.codegarden.de/

The background should be in the html page when possible and the silverlight control should be the content in the middle part and should scroll with the browser scrollbar.

Can anyone help me? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:48:24+00:00Added an answer on May 23, 2026 at 10:48 am

    You can have your silverlight application execute javascript commands on the hosting page, that will in turn set the size of the <Object> tag.

    Something like that:

    using System.Windows.Browser; 
    
    // set a global variable
    HtmlPage.Window.Eval(String.Format("setSilverlightObjSize({0},{1});",newW,newH)); 
    

    where setSilverlightObjSize is a javascript function you wrote in the hosting page.

    soemthing like:

    function SetObjectTagProps(w,h)
    {
        var obj = document.getElementById("silverlightObj");
        obj.width = w;
        obj.height = h;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having the following problem - I have a master page with an ASP
I have been having the following problem, i think it's probably due to the
We have following problem. Developers frequently need to make small changes to our web
I'm having following problem. I should convert a control to a certain type, this
I'm having the following problem. I created a application context file for spring.net. The
I'm having the following problem and wondered whether anyone could see why this is
I'm having the following problem using the Visual Studio 2010 Team System Beta 1:
I've been having the following problem with my GoDaddy's server. I am using JSPs
I'm having the following problem: When I got two labels into each other: <Label
I'm using Qt Creator 4.5 with GCC 4.3 and I'm having the following problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.