UI controls have an .IsEnabled property which determine if they are enabled/disabled. TextBoxes have been/are a little different – in older versions I would normally check the Style to see if it was StyleTextBoxDisabled