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

What am I missing

3 Answers 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 2
Mike asked on 02 Aug 2010, 07:14 AM
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.

3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 02 Aug 2010, 12:54 PM
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
0
Mike
Top achievements
Rank 2
answered on 02 Aug 2010, 01:29 PM
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.
0
Accepted
Rossen Hristov
Telerik team
answered on 02 Aug 2010, 03:41 PM
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
Tags
General Discussions
Asked by
Mike
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
Mike
Top achievements
Rank 2
Share this question
or