Email: Password:       Forgot Password 
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.

Wrapping and Scrolling TexBox in WPF

Viewed:  1610 
Posted On:  23/09/2012 05:42:30 
Learn how to use textbox property Wrapping and Scrolling in WPF. 

In this article I am going to explain how we can use Wrapping and Scrolling property of textbox in WPF.

Below is my XAML code:

<Window x:Class="WrappingAndScrollingTextBox_WPF.Window1"
    Title="Window1" Height="300" Width="300">
        <TextBox Height="33" HorizontalAlignment="Left" Margin="50,68,0,0" Name="myTxt"
                 VerticalAlignment="Top" Width="200" Text="Hi Welcome to WPF! very exciting to work here in WPF Application."
                 TextWrapping="Wrap" Background="Black" Foreground="White" 
                 HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Visible" />

When I run application: 


Figure 1. 


Figure 2.

         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us