none
ComboBox IsEditable is driving me nuts

    Question

  • I can't seem to remove the read-only. accessible setter error in xaml

    Platform- WinRT

    All I'm trying to achieve is a simple enter text or select from a comboBox that has turned into hours of frustration. Plz Help. This property should not be read-Only. 

    Wednesday, March 06, 2013 1:11 AM

Answers

  • Hi jjackson12172,

    Please clean your project and use code below to have a try:

     <ComboBox Height="23" Name="comboBox1" Width="120"  >
         <ComboBox.Style>
            <Style TargetType="ComboBox">
                 <Setter Property="IsEditable" Value="true"/>
             </Style>
           </ComboBox.Style>
    
          <ComboBoxItem Content="Coffie"></ComboBoxItem>
          <ComboBoxItem Content="Tea"></ComboBoxItem>
          <ComboBoxItem Content="Orange Juice"></ComboBoxItem>
          <ComboBoxItem Content="Milk"></ComboBoxItem>
          <ComboBoxItem Content="Iced Tea"></ComboBoxItem>
          <ComboBoxItem Content="Mango Shake"></ComboBoxItem>
    </ComboBox>
    
    Regards,

    Lisa Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, March 29, 2013 1:11 PM
    Moderator

All replies

  • As you did not provide any code, what does this code do or not do for you:

    <Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:src="clr-namespace:WpfApplication1"
        Title="Window4" Height="300" Width="300">
        <ComboBox Height="23" Name="comboBox1" Width="120" IsEditable="True" >
                <ComboBoxItem Content="Coffie"></ComboBoxItem>
                <ComboBoxItem Content="Tea"></ComboBoxItem>
                <ComboBoxItem Content="Orange Juice"></ComboBoxItem>
                <ComboBoxItem Content="Milk"></ComboBoxItem>
                <ComboBoxItem Content="Iced Tea"></ComboBoxItem>
                <ComboBoxItem Content="Mango Shake"></ComboBoxItem>
        </ComboBox>
    </Window>
    Because I can Entere "Earl Grey" as if it were a Textbox.

    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2

    Wednesday, March 06, 2013 4:00 AM
  • Doesn't Work ---

    Invalid markup

    Can not assign "True", IsEditable is read-only, No <Setter>

    Tried to set the property <Setter Property="IsEditable" Value="True"/> Once Again--

    Is read-only....Lost cause, thanks for the response.

    Wednesday, March 06, 2013 7:41 PM
  • Are you using the WPF ComboBox or the WinForms ComboBox in a WPF Window?

    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2

    Wednesday, March 06, 2013 8:37 PM
  • Hi jjackson12172,

    Please clean your project and use code below to have a try:

     <ComboBox Height="23" Name="comboBox1" Width="120"  >
         <ComboBox.Style>
            <Style TargetType="ComboBox">
                 <Setter Property="IsEditable" Value="true"/>
             </Style>
           </ComboBox.Style>
    
          <ComboBoxItem Content="Coffie"></ComboBoxItem>
          <ComboBoxItem Content="Tea"></ComboBoxItem>
          <ComboBoxItem Content="Orange Juice"></ComboBoxItem>
          <ComboBoxItem Content="Milk"></ComboBoxItem>
          <ComboBoxItem Content="Iced Tea"></ComboBoxItem>
          <ComboBoxItem Content="Mango Shake"></ComboBoxItem>
    </ComboBox>
    
    Regards,

    Lisa Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, March 29, 2013 1:11 PM
    Moderator
  • Hi jjackson12172,

    I provisionally marked my reply as answer. Please  feel  free to unmark it if you think the information does not help.

    Thanks for your understanding.

    Regards,


    Lisa Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, April 03, 2013 2:58 PM
    Moderator