none
No scrollbars?

    Question

  • I added a TextBlock that have more text than visible.  Now even thought I try to set every single properties about Scrollbars to be enabled or visible, I have none in the Simulator or even running the app from the START SCREEN.  I also tried to add my TextBlock in a ScrollViewer, no luck !

    I'm using HTML + Javascript

    Thursday, July 18, 2013 8:01 AM

Answers

  • Let's assume your TextBlock has an id="textBlock". In your css file, put:

    #textBlock {	
        overflow: auto;
    }

    This will give you scroll bars when the content is greater than the area. If you always want scroll bars to be visible, even if the content is within the area, set overflow: scroll.

    If you want this in your html, just put:

    <div id="textBlock" style="overflow: auto"></div>

    Hope that helps.

    Thursday, July 18, 2013 7:57 PM