Hye,
i m maing a simple application where
user enters some lines in a textbox.
i've to show it into either a textblock or a textbox.
but whole content can't be shown at a time.
so, i need to scroll that content.
i have used the following code:
(but it doesn't works. Actually, instead of scrolling
the content of textblock/textbox, it scroll the
textblock or the textbox itself.)
<scrollviewer maxheight="135" name="scrollViewer2" width="228" horizontalscrollbarvisibility="Disabled" verticalscrollbarvisibility="Auto">
<textblock height="185" lineheight="21.333" name="textBlock1" text="TextBlock" width="228" textwrapping="Wrap" />
</scrollviewer>
<scrollviewer maxheight="149" name="scrollViewer1" width="233" horizontalscrollbarvisibility="Disabled" verticalscrollbarvisibility="Visible">
<textbox height="188" name="textBox2" text="TextBox" width="215" verticalscrollbarvisibility="Visible" textwrapping="Wrap" />
</scrollviewer>
Please copy code and review