way to check if textbox is readOnly

Apr 21, 2009 at 11:11 AM
It could be me being a retard here, but there seems to be no way to check wether a textbox is in readOnly mode or not. Any way to check this?
Apr 23, 2009 at 6:48 AM
Noticed it's for release 0.18, sorry for redundant post
May 12, 2009 at 1:31 PM

Hi,

 

You can add the following code in TextBox class and use that,

 

public virtual bool ReadOnly

        {

            get

            {

                return ((ValuePattern)Pattern(ValuePattern.Pattern)).Current.IsReadOnly;

            }

        }

 

 

Thanks & Regards,

Kannan