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
goldenguy
Member
8 Points
10 Posts
How to Disable Textbox
May 07, 2008 12:18 PM | LINK
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
2646 Points
383 Posts
Re: How to Disable Textbox
May 07, 2008 01:45 PM | LINK
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
43607 Points
7907 Posts
Re: How to Disable Textbox
May 07, 2008 02:10 PM | LINK
WatermarkedTextBox has IsEnabled property.
TextBox has IsReadOnly property.
Software Engineer
Aprimo, Inc
Please remember to mark the replies as answers if they answered your question
GearWorld
Participant
1661 Points
2024 Posts
Re: How to Disable Textbox
Oct 11, 2008 11:53 PM | LINK
MISTAKE. SORRY