The text of this article is not in this database — only its details are. Read it on the old site: WPF TextBox
22 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: WPF TextBox
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Smk MersalPosted Jul 8, 2020, 12:39 AM
How to hide the textbox element(content) not textbox if the listbox(list collections) selection is changed?
Teja KumarPosted Oct 28, 2015, 12:29 PM
Sir, actually my doubt is i need to pass text box data to button. When i click the button it wants to display the website, if the text box contain an URL.
Teja KumarPosted Oct 28, 2015, 8:01 AM
Thank you sir.
Teja KumarPosted Oct 25, 2015, 1:22 PM
Sir, how to get the text at runtime of the application.
swati ailPosted Apr 5, 2013, 4:28 AM
How to assign button fontstyle through coding in wpf?
Abhishek joshiPosted Jul 3, 2012, 10:15 AM
@Jeganathan Balachandar - As I mentioned in my previous comments, these properties are not supported by WPF textBox (but Silverlight TextBox support these). Refer - http://stackoverflow.com/questions/10850629/how-to-change-the-highlighted-texts-foreground-color-for-a-wpf-textbox
Jeganathan BalachandarPosted Jul 3, 2012, 8:49 AM
Hi I need to change the selected text foreground, but i couldn;t find the SelectionForeGround and SelectionBakground properties in TextBox control. TextBox2.SelectionBackground = new SolidColorBrush(Colors.Blue); TextBox2.SelectionForeground = new SolidColorBrush(Colors.White);
Abhishek joshiPosted Jun 4, 2012, 10:15 AM
BTW the Edit comment functionality is not working, shows this error - "We have recently made changes to the site and resource you are looking for may have moved. Please try our search by typing your keyword in search at top and click Go. Again, sorry for inconvenience."
Abhishek joshiPosted Jun 4, 2012, 10:11 AM
Wao, I was not expecting such reply from founder of C# corner! Can you provide some link to support your claim? I hope MS would not change the documentation of previous versions.
Mahesh ChandPosted Jun 4, 2012, 10:00 AM
This article was written couple of years ago and Microsoft keep changing its API in every new version :).
Abhishek joshiPosted Jun 4, 2012, 6:08 AM
Are you sure your article contains correct information? There is not property called SelectionForeground & SelectionBackground in WPF TextBox! Moreover your attached sample is incomplete, covering only one point of the article. http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox(v=vs.100).aspx SelectionForeground & SelectionBackground are the properties of silverlight textbox - http://msdn.microsoft.com/en-us/library/system.windows.controls.textbox.selectionforeground(v=vs.95).aspx
Jared BarneckPosted Aug 25, 2011, 1:50 AM
This article is missing information on Mnemonics. <a href="http://www.rhyous.com/2011/02/15/wpf-label-textbox-and-mnemonics/">WPF Label, TextBox, and Mnemonics</a>