Hi,
how do I change the UpdateSourceTrigger of the SelectedItem? Right now the SelectedItem changes only if the user hits the enter key, but I would like the SelectedItem to change after every keystroke.
This is my current code:
<ig:XamComboEditor AllowFiltering="True" ItemsSource="{Binding AccountingFieldContainer.ActiveItems}" CustomValueEnteredAction="True" SelectedItem="{Binding SelectedItem, Mode=TwoWay}" Loaded="XamComboEditor_Loaded" DisplayMemberPath="DisplayName" IsEditable="True"> <ig:XamComboEditor.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding DisplayName}" /> </DataTemplate> </ig:XamComboEditor.ItemTemplate> </ig:XamComboEditor>
The Loaded event handler adds a custom items filter to the editor.
All ideas are appreciated.
Darius
Hello Darius,
Can you expand on your requirement a bit more? What keystrokes are you referring to? When the user types the value into the combobox to filter the items by, or when the user uses the arrow keys to cycle through the items in the dropdown? Maybe you can provide a scenario using this requirement to help me better understand what you are looking for.
Hello Rob,
I want to use the editor to either let the user choose one item from the dropdown or to create a new item (The new item shouldn't be included in the items list. CustomValueEntered="Allow"). I also want to allow filtering with a custom items filter.
My scenario:
User starts to type in a string into the editor. During this operation the custom items filter, filters the selectable items. The selected item is either a matching item from the selected items (100% match) or a new instance of an item, that holds the typed in string in its property that is set in the DisplayMemberPath (in this example DisplayName).
Basicaly this functionality is already included in the editor, with one exception. The selected item changes only if
But what I also need is, that the SelectedItem changes if the LostFocus event occures.
Yours sincerely,