Hi - I have a combobox that is bound to a Dictionary like so:
<telerik:RadComboBox x:Name="cboAgent" Grid.Row="4" Grid.Column="1" SelectedValuePath="Key" DisplayMemberPath="Value" Style="{StaticResource ComboBoxStyle}" SelectedValue="{Binding AgentId}" />
That part works fine. What I'm trying to accomplish is setting the value of a datacontext object (business object set for the page) property whenever the selected item changes. The AgentId property in the datacontext should update to whatever the SelectedValuePath value is whenever the combobox item changes. I could do this in the SelectionChanged event but I know it can be done no code.
Thank you
Jon
<telerik:RadComboBox x:Name="cboAgent" Grid.Row="4" Grid.Column="1" SelectedValuePath="Key" DisplayMemberPath="Value" Style="{StaticResource ComboBoxStyle}" SelectedValue="{Binding AgentId}" />
That part works fine. What I'm trying to accomplish is setting the value of a datacontext object (business object set for the page) property whenever the selected item changes. The AgentId property in the datacontext should update to whatever the SelectedValuePath value is whenever the combobox item changes. I could do this in the SelectionChanged event but I know it can be done no code.
Thank you
Jon