Skip to main content
Home Forums Silverlight Programming Programming with .NET - General How to Disable Textbox
3 replies. Latest Post by GearWorld on October 11, 2008.
(0)
goldenguy
Member
8 points
10 Posts
05-07-2008 7:18 AM |
hi,
i had one radiobutton ,text box and datepicker(silverlight2.0) controls in my silverlight application. i want to disable textbox and datepicker when i checked the radiobutton .but i didn't find Isdisable property for textbox or datepicker, isdisable property only in button control.how to disable textbox and datpicker. plz let me know
thank you
Jim Mangaly
Contributor
2610 points
380 Posts
05-07-2008 8:45 AM |
The IsEnabled property is not present. You could choose one of the two options:
1) Set the Visibility property to Collapsed
2) Set the IsReadOnly property to true, and set the Opacity to say 0.5
Hope this helps,Jim (http://jimmangaly.blogspot.com/)
Please MARK the replies as answers if they answered your question
sladapter
All-Star
17439 points
3,172 Posts
05-07-2008 9:10 AM |
WatermarkedTextBox has IsEnabled property.
TextBox has IsReadOnly property.
GearWorld
Participant
838 points
1,099 Posts
10-11-2008 6:53 PM |
MISTAKE. SORRY