Vertical/Horizontal scrollbar for silverlight page
-
Hi All, I am new to silverlight. I am creating a silverlight page of 1200 width and 2000 height dimensions. When the page is displayed the vertical or the horizontal scrollbars are getting displayed and hence the page appears cut. Please help me out to solve this issue or provide appropriate pointers. Thanks in advance for your time.
Sunil
-
Hi All, I am new to silverlight. I am creating a silverlight page of 1200 width and 2000 height dimensions. When the page is displayed the vertical or the horizontal scrollbars are getting displayed and hence the page appears cut. Please help me out to solve this issue or provide appropriate pointers. Thanks in advance for your time.
Sunil
sunilkpv wrote:
When the page is displayed the vertical or the horizontal scrollbars are getting displayed and hence the page appears cut. Please help me out to solve this issue
What do you WANT to happen?
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
sunilkpv wrote:
When the page is displayed the vertical or the horizontal scrollbars are getting displayed and hence the page appears cut. Please help me out to solve this issue
What do you WANT to happen?
Mark Salsbery Microsoft MVP - Visual C++ :java:
Hi Mark, I want the silverlight web page to have scrolling capability. At present when i build and test the solution, the web browser doesn't display the contents completely as the contents are extending beyond the web browser window. I am not able to scroll it either horizontally nor vertically to see the full page contents because silverlight is not showing any (auto)scrollbars. How could this problem be overcome? NOTE: My silverlight canvas height is 1200 and width is 1500. Hence the web browser doesn't display the contents completely. Thanks.
Sunil
-
Hi Mark, I want the silverlight web page to have scrolling capability. At present when i build and test the solution, the web browser doesn't display the contents completely as the contents are extending beyond the web browser window. I am not able to scroll it either horizontally nor vertically to see the full page contents because silverlight is not showing any (auto)scrollbars. How could this problem be overcome? NOTE: My silverlight canvas height is 1200 and width is 1500. Hence the web browser doesn't display the contents completely. Thanks.
Sunil
<UserControl x:Class="SilverlightTester.LargeScrollyPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
<Canvas Width="1500" Height="1200" Background="LightSteelBlue" />
</ScrollViewer>
</UserControl>Note: No Width/Height specified on UserControl.
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
<UserControl x:Class="SilverlightTester.LargeScrollyPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
<Canvas Width="1500" Height="1200" Background="LightSteelBlue" />
</ScrollViewer>
</UserControl>Note: No Width/Height specified on UserControl.
Mark Salsbery Microsoft MVP - Visual C++ :java: