Home » Tutorials » TextBox – WPF Tutorials step by step – 4

TextBox – WPF Tutorials step by step – 4

Button - WPF Tutorials step by step - 3
What is OPENXML in SQL Server?

TextBox – WPF Tutorials step by step – 4

Till now we have learn about Hello World – WPF Tutorials Step by Step – 1 , Label – WPF Tutorials step by step-2 and Button – WPF Tutorials step by step – 3. Today I am going to explain regarding different properties and functionality of TextBox in WPF.

  • Single-line TextBox

Single-line TextBox is used to take inputs from user, let have look into below code, which contains basic properties of TextBox in WPF.

Output:

Single-Line TextBox

  • Multi-line TextBox

To enable multi-line TextBox in WPF, we just set AcceptsReturn, TextWrapping= “Wrap” and we could also set ScrollBarVisibility properties as well as shown below code snippet.

Output:

MultiLineTextBox

  • Spelling Checking in TextBox

To do spelling checking in WPF, we just have to set SpellingCheck.IsEnabled=”True”.

Output:TextBoxSpellingCheckerWPF

 

  • TextBox Selection

To find the position of cursor and Selected Text as well as position of selected text.

 

Output:SelectionChangedTextbox

Lets have a look into for all these features in single screen, which as below:

Textbox in WPF

 

About

Hello friends, My self Dhruv Sheth, I have more than 6 years of Industrial experience as a Software Developer. In my career I got chance to work with asp.net, c#,Web API, JavaScript, JQuery, WPF, WCF , Windows Application, PostScript, vb.net, GhostScript etc. So I have decided to share my knowledge with everyone and finally I have come up with TechnoThirsty.

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*

Time limit is exhausted. Please reload CAPTCHA.




DISCLAIMER:
The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.