Selected Item of combobox enable = "false"

Apr 22, 2013 at 10:30 AM
Edited Apr 22, 2013 at 10:35 AM
Hi White team,

I have a small problem with controls have enable = "False"

For example, I have a wpf combo box define as:

<ComboBox Grid.Row="3" Grid.Column="1" x:Name="aaaa" DisplayMemberPath="Name" IsEnabled="{Binding Canaaa}" Enable ="False" />

And I use white to get the selected value of this combobox

public ComboBox CbxGemeinde {
        get {
            if (m_cbxGemeinde == null) {
                m_cbxGemeinde = GetCombobox("Gemeinde");
            return m_cbxGemeinde;
protected ComboBox GetCombobox(string controlId) {
        return Screen.Get(SearchCriteria.ByAutomationId(controlId)) as ComboBox;
But the value get from combobox are:
combobox.SelectedItem is null,
combobox.Items is empty,
combobox.SelectedItemText = ""

Could you please help me check what wrong in getting selected value of combo box?

Cam Tu.
Jul 29, 2013 at 7:38 PM
Hi Cam,

If this is still an issue, please raise an issue on GitHub so it can be tracked properly.