Essentially, I want to use a combobox as a means to select an item to view, not update the item currently being viewed. Is it possible to do this using bindings rather than code?
Here's the code I have in the view:
<ComboBox DisplayMemberPath="CustomerId" SelectedValuePath="CustomerId"
SelectedValue="{Binding Path=CustomerId}" ItemsSource="{Binding Mode=OneWay}"
IsSynchronizedWithCurrentItem="True"/>
It will display the next member I select from the combo box, but it will also override the previous value of the customer I switched from.
(Also, my apologies for any poor etiquette; this is my first post here)
Edit: To clarify, the hierarchy of the window is as follows: A grid that contains text boxes and the combobox and that has the binding. The text boxes bind to various attributes of the "customer" class and then the combobox sets the selected customer.
So like this:
<Grid DataContext = "{Binding Customers}">
<TextBox .../>
...
<ComboBox (see code above)/>
</Grid>