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. Mobile Development
  3. Mobile
  4. TextBlock does not display all Text (Windows Phone 8)

TextBlock does not display all Text (Windows Phone 8)

Scheduled Pinned Locked Moved Mobile
questioncsharpdatabasehelpworkspace
2 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.
  • A Offline
    A Offline
    Abdul Rahman Hamidy
    wrote on last edited by
    #1

    Dear All, I have below code (Just for text purpose)

    <ScrollViewer VerticalScrollBarVisibility="Visible">
    <TextBlock x:Name="txt" Foreground="White" FontSize="40"/>
    </ScrollViewer>

    and c#

    for (var i = 0; i < 50; i++)
    txt.Text += counter++ + Environment.NewLine;

    It prints upto 43 lines (counter), However there is a scroll, but i cannot see the remaining text. I dont know what is the issue with textblock (does it accept only 43 lines or more?)

    Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

    P 1 Reply Last reply
    0
    • A Abdul Rahman Hamidy

      Dear All, I have below code (Just for text purpose)

      <ScrollViewer VerticalScrollBarVisibility="Visible">
      <TextBlock x:Name="txt" Foreground="White" FontSize="40"/>
      </ScrollViewer>

      and c#

      for (var i = 0; i < 50; i++)
      txt.Text += counter++ + Environment.NewLine;

      It prints upto 43 lines (counter), However there is a scroll, but i cannot see the remaining text. I dont know what is the issue with textblock (does it accept only 43 lines or more?)

      Abdul Rahaman Hamidy Database Developer Kabul, Afghanistan

      P Offline
      P Offline
      PavanPareta
      wrote on last edited by
      #2

      Hello Abdul, you can refer my resent blog post for the same solution. How to make TextBox Scrollable and Navigate to end of TextBox scrolling in Windows Phone[^] Hope it helps:java:

      Pavan Pareta

      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