To configure ReadOnly ComboBox in XAML (WPF), you need to configure ComboBox and TextBox , showing only one of them according to the pair of IsReadOnly / IsEditable properties that must exist on your ViewModel . Note that in this example, " UserNVL " must exist in the resources, and it must be a collection of NameValueList , which allows us to convert ID to names. In this case, the RecipientID is the key for the username. Note that the VisibilityConverter must also exist in the resources, and the standard BooleanToVisibilityConverter must exist.
Gosh! It was so hard to find that I had to do it myself. This allows the user to select the contents of the text field. A disabled ComboBox will never let you do this.
wpf readonly xaml combobox
Tiago freitas leal
source share