Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8615139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:18:01+00:00 2026-06-12T05:18:01+00:00

<ComboBox TextSearch.TextPath=MemberFullName IsEditable=True Height=23 VerticalAlignment=Center Grid.Row=1 Grid.Column=1 Margin=5,0,0,0 ItemsSource={Binding MemberCollection} SelectedItem={Binding SelectedSearchMember,Mode=TwoWay,ValidatesOnDataErrors=True}> <ComboBox.ItemTemplate> <DataTemplate>

  • 0
<ComboBox   TextSearch.TextPath="MemberFullName"  IsEditable="True" Height="23" VerticalAlignment="Center" Grid.Row="1" Grid.Column="1" Margin="5,0,0,0" ItemsSource="{Binding MemberCollection}" SelectedItem="{Binding SelectedSearchMember,Mode=TwoWay,ValidatesOnDataErrors=True}">
            <ComboBox.ItemTemplate>
              <DataTemplate>
                   <TextBlock Text="{Binding MemberFullName}" VerticalAlignment="Center"/>
               </DataTemplate>
            </ComboBox.ItemTemplate>
</ComboBox>

On Mouse Left Button Down it become Editable

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:18:03+00:00Added an answer on June 12, 2026 at 5:18 am

    If you use MVVM pattern, add to your ViewModel variable:

      private bool _isEditableComboBox = false;
            public bool IsEditableComboBox
            {
                get { return _isEditableComboBox; }
                set { _isEditableComboBox = value; RaisePropertyChanged(() => IsEditableComboBox); }
            }
    

    Add to your project assembly: System.Windows.Interactivity

    Add to your View namespace to this assembly:

    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    

    Change your ComboBox to this:

     <ComboBox TextSearch.TextPath="MemberFullName" IsEditable="{Binding IsEditableComboBox, UpdateSourceTrigger=PropertyChanged}" Height="23" VerticalAlignment="Center" Grid.Row="1" Grid.Column="1" Margin="5,0,0,0" ItemsSource="{Binding MemberCollection}" SelectedItem="{Binding SelectedSearchMember,Mode=TwoWay,ValidatesOnDataErrors=True}">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="PreviewMouseDown">
                        <i:InvokeCommandAction Command="{Binding TurnOnEditMode}" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding MemberFullName}" VerticalAlignment="Center"/>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
            </ComboBox>
    

    And you must add to your ViewModel this command:

    public ICommand TurnOnEditMode { get; private set; }
            private void OnTurnoOnEditMode()
            {
                IsEditableComboBox = true;
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<ComboBox Name=cbDesignation IsEditable=True TextSearch.TextPath=DesignationName StaysOpenOnEdit=True ItemsSource={Binding Path=DesignationCollection,Mode=TwoWay} SelectedItem={Binding Path=SelectedDesignation,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged,ValidatesOnDataErrors=True} VerticalAlignment=Center> <ComboBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel/> </ItemsPanelTemplate>
i have a combobox : <Grid> <ComboBox Height=52 HorizontalAlignment=Left ItemsSource={Binding templatesNames} SelectedValuePath=Type.FullName Margin=169,43,0,0 Name=comboBox1
My ComboBox : <ComboBox SourceUpdated=MyComboBox_SourceUpdated ItemsSource={Binding ...} SelectedValue={Binding Path=SelectedValueMember, NotifyOnSourceUpdated=True} SelectedValuePath=... DisplayMemberPath=... /> And
sample combobox: <DataGridComboBoxColumn Header=Status SelectedItemBinding={Binding status} ItemsSource={Binding status} Width=98.8 /> sourse data on mysql
I have a ComboBox that it looks like this: <ComboBox ItemsSource={Binding JobList} SelectedValue={Binding Job,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}
I Have a combobox with ItemsSource bound to an ObservableCollection. A RadioButton allows the
I have a combobox that is binding to an ObservableCollection of strings in an
I have ContentControls like ComboBox and TextBox inside of a Grid or a StackPanel.
I use a datatemplate to visualize some items in a ComboBox, the ItemsSource is
I want my WPF ComboBox's ItemsSource property to be bound to MyListObject's MyList property.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.