We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change casing of line items in EditControl?

EditControl provides option for an end user to customize the Character casing of its contents. Please follow below steps for achieving this.

 

Step 1: At present there is no property in EditControl, to define Character casing for its contents. So here we are creating Custom control, derived from the EditControl and implemented property to define the Character casing.

Step 2: In EditControl, Lines property will hold its contents i.e. line by line. On the drawing process, each line will be retrieved from this collection and drawn in EditControl UI.

Step 3: Here we are iterating each line and apply the Character casing to it. Then it will be reflected in EditControl with Character case settings.

The following code demonstrates the same.

 

Code Example: [Xaml]

 

 

Code Example: [C#]

 

 

Screenshot

 

Figure:  CharacterCasing is lower.

 

 

Figure:  CharacterCasing is upper.

 

 

Figure:  CharacterCasing is Normal.

 

Sample:  EditControlCharacterCasingSample

 

 

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
9139 08/13/2018 08/13/2018 WPF EditControl 4
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon