locked
Is there an equivalent IsTextSearchEnabled=false for the combobox in Metro App RRS feed

  • Question

  • I am trying to make an editable ComboBox in the Metro App by using TextBox as ComboBoBoxItem. But the ComBoBox is not allow me to enter SPACE character.

    I am wondering if there is a "IsTextSearchEnabled=false" control to disable the searching capability for the ComboBox while editing the ComboBoxItem. Or Is there a way to intercept the character and add the character to the ComBoBoxItem.

    Thanks,

    Shane 

    Tuesday, May 20, 2014 5:29 AM

Answers

  • No, there's no equivalent.

    You may want to move the TextBox outside of the ComboBox rather than including it in the template. You can wrap them both in a user control and swap visibility when the user tries to open the ComboBox.

    Make sure to add a keyboard method to open the ComboBox if you override the default methods.

    Tuesday, May 20, 2014 11:49 PM
    Moderator