What am I missing

4 posts, 1 answers
  1. Mike
    Mike avatar
    15 posts
    Member since:
    Jul 2010

    Posted 02 Aug 2010 Link to this post

    I started a new SilverLight project.
    I built my control using the designer and have gotten everything laid out just the way I want it.

    But, when I view the page in the browser, because the page I've made is taller than the browser window, I expected scroll bars.
    BUT, no scrollbars on my browser window, everything below the bottom of the screen just doesn't show.

    What am I missing?

    I'm just getting starting using the Telerik controls to develop a SilverLight webpage, so there's probably something easy/obvious that I'm not doing that I should be.

    Thanks in advance for any response/help,
    Mike T.
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 02 Aug 2010 Link to this post

    Hi Mike,

    Probably you should place the entire thing in a container that supports scrolling, such as the ScrollViewer.

    I hope this helps.

    Kind regards,
    Ross
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Mike
    Mike avatar
    15 posts
    Member since:
    Jul 2010

    Posted 02 Aug 2010 Link to this post

    Thank you for your reply Ross.

    Yes, that did work.....to a certain extent.

    I added the <ScrollViewer> container and it added the necessary scrollbar so that the user could scroll down and see the controls at the bottom.

    While that was functional, not exactly what I expected.  I expected the browser to add scrollbars, not a container inside the browser.

    Maybe, I'm missing the concept.  Should I be placing all of the functionality/controls that I want on my page into one Silverlight control that then gets displayed on the .html page?  Or shold I be creating separate Sliverlight controls for each area of my .html page and then place each of the individual controls into a container (<div>) on the .html page....would that make a difference?

    Thanks again for your help,
    Mike T.
  5. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 02 Aug 2010 Link to this post

    Hi Mike,

    Maybe, I'm missing the concept.  Should I be placing all of the functionality/controls that I want on my page into one Silverlight control that then gets displayed on the .html page?  Or shold I be creating separate Sliverlight controls for each area of my .html page and then place each of the individual controls into a container (<div>) on the .html page....would that make a difference?

    My suggestion is to keep all of your controls in a single silverlightControlHost. If you have many of them -- these are different applications and the communication between them would be an complete and total overkill even if it is possible. Imagine that Silverlight is just like a Flash or a Java Applet. Would you divide your app into 10 different Flash-es or Applets? With Silverlight it is the same.

    I hope this helps.

    Best wishes,
    Ross
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top