Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Vertical/Horizontal scrollbar for silverlight page

Vertical/Horizontal scrollbar for silverlight page

Scheduled Pinned Locked Moved WPF
help
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sunil P V
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • S Sunil P V

      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

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      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:

      S 1 Reply Last reply
      0
      • M Mark Salsbery

        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:

        S Offline
        S Offline
        Sunil P V
        wrote on last edited by
        #3

        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

        M 1 Reply Last reply
        0
        • S Sunil P V

          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

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          <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:

          S 1 Reply Last reply
          0
          • M Mark Salsbery

            <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:

            S Offline
            S Offline
            Sunil P V
            wrote on last edited by
            #5

            Thanks a lot Mark. I will try this stuf and get back to you. Thanks.

            Sunil

            S 1 Reply Last reply
            0
            • S Sunil P V

              Thanks a lot Mark. I will try this stuf and get back to you. Thanks.

              Sunil

              S Offline
              S Offline
              Sunil P V
              wrote on last edited by
              #6

              Just great. This is what I really needed. Thanks.

              Sunil

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups