Show / Hide Table of Contents

Method wpfBuilder.Readonly


Overload

Sets System.Windows.Controls.Primitives.TextBoxBase.IsReadOnly or System.Windows.Controls.ComboBox.IsReadOnly of the last added text box or editable combo box.

public wpfBuilder Readonly(bool readOnly = true, bool caretVisible = false)
Parameters
readOnly  (bool)
caretVisible  (bool)

Sets System.Windows.Controls.Primitives.TextBoxBase.IsReadOnlyCaretVisible. Not used with ComboBox.

Returns
wpfBuilder
Exceptions
NotSupportedException

The last added element is not TextBoxBase or ComboBox.