Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1105231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:35:58+00:00 2026-05-17T01:35:58+00:00

I am playing with XamlPadX and here is the code I have so far:

  • 0

I am playing with XamlPadX and here is the code I have so far:

<ScrollViewer Name="Scroller" 
                HorizontalScrollBarVisibility="Disabled" 
                VerticalScrollBarVisibility="Auto" 
                Height="100">

    <TextBlock Name="txtLog" TextWrapping="Wrap" VerticalAlignment="Stretch" Height="100">

         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas at aliquet justo. Praesent adipiscing ante nec ipsum pellentesque semper. Proin tristique lorem eget lorem viverra pellentesque in et quam. Maecenas at varius nunc. Donec bibendum tortor non nisi aliquam ultrices. Quisque nec felis elit. Morbi ut orci a nunc malesuada accumsan sed ut metus. Praesent eu dolor et elit faucibus adipiscing ac vitae lectus. Donec elit sapien, sollicitudin sed porta ac, egestas eu odio. Cras vulputate sagittis est, sed pretium ligula dictum commodo. Sed sit amet enim ut velit bibendum gravida vitae eget diam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas facilisis eleifend sem quis interdum.

        Nam vestibulum, tortor dictum feugiat aliquam, ligula mi commodo nisl, eget sagittis est leo a nunc. Nunc elit lacus, sodales non dictum vel, tincidunt vitae felis. Sed blandit convallis dui, nec laoreet diam volutpat eu. Sed et risus nunc. Aliquam vitae lectus a lectus ullamcorper aliquam. Donec venenatis lorem ut nulla posuere at dictum ante sodales. Nullam dictum ante bibendum leo bibendum mattis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ultricies risus sodales velit iaculis varius interdum mauris interdum. Curabitur pellentesque mattis lobortis. Quisque ornare luctus dignissim. Sed gravida consequat feugiat. Aliquam malesuada lacinia faucibus. Mauris et est ut sem imperdiet volutpat.

        Aliquam non erat nec ante sollicitudin pellentesque sit amet eu mi. Integer tempus, ipsum nec mollis faucibus, elit nisl feugiat felis, sed venenatis leo felis id quam. Cras ut porta justo. In tempor ultricies sapien, id iaculis metus blandit sit amet. Pellentesque ullamcorper, risus lacinia vehicula aliquet, risus quam luctus mauris, eu pellentesque leo enim vel turpis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed vel adipiscing quam. Praesent eget tortor lectus, vitae ultricies sem. Fusce cursus lorem in arcu auctor interdum. Pellentesque est arcu, lobortis quis mollis posuere, iaculis nec nisi. In sollicitudin tortor sed purus eleifend posuere. Vestibulum.

    </TextBlock>

</ScrollViewer>

The problem is the scroll bar doesn’t appear even if I set a height in the TextBlock, why?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:35:58+00:00Added an answer on May 17, 2026 at 1:35 am

    Your ScrollViewer will never display a scrollbar, since it’s Height is 100, and the Height of the TextBlock is also 100. The text within the TextBlock is simply overflowing out of the bounds of the control without making the control larger. If you want the TextBlock to always fill the ScrollViewer, then change the Height property on the TextBlock to MinHeight instead. If you don’t care that the TextBlock may be shorter than the ScrollViewer, then just do away entirely with the Height property on the TextBlock.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Playing a little with coffeescript and Rails 3.1.0.rc4. Have this code: yourMom = (location)
Im playing a little bit with heavy-client app. Imagine I have this model: class
Still playing with Chrome Extension and have a little problem when I want to
Playing around with Google Maps these days, with some directions. I have a map
Playing around with Dapper, I'm quite pleased with the results so far - intriguing!
Playing with log4net, I have seen the possibility to use a per-thread stack of
Playing with Disqus for commenting, but the problem is that we have a Silverlight
Playing around with xpath expressions trying to learn it. I found a code snippet,
Playing around with SQL Server 2008 and I have a table People with columns:
While playing with implementing a virtual assignment operator I have ended with a funny

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.