Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.aspx" rel="noreferrer"><code>ComboBox</code></a> control inherits from the <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.aspx" rel="noreferrer"><code>ListControl</code></a> control.</p> <p>The <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selecteditem.aspx" rel="noreferrer"><code>SelectedItem</code></a> property is a proper member of the <code>ComboBox</code> control. The event that is fired on change is <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.combobox.selectionchangecommitted.aspx" rel="noreferrer"><code>ComboBox.SelectionChangeCommitted</code></a></p> <p><strong>ComboBox.SelectionChangeCommitted</strong></p> <blockquote> <p>Occurs when the selected item has changed and that change is displayed in the ComboBox.</p> </blockquote> <p>The <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.selectedvalue.aspx" rel="noreferrer"><code>SelectedValue</code></a> property is inherited from the <code>ListControl</code> control. As such, this property will fire the <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.listcontrol.selectedvaluechanged.aspx" rel="noreferrer"><code>ListControl.SelectedValueChanged</code></a> event.</p> <p><strong>ListControl.SelectedValueChanged</strong></p> <blockquote> <p>Occurs when the SelectedValue property changes.</p> </blockquote> <p>That said, they won't fire the <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx" rel="noreferrer"><code>INotifyPropertyChanged</code></a>.<a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.propertychanged.aspx" rel="noreferrer"><code>PropertyChanged</code></a> event the same, but they will anyway. The only difference is in the firing event. <code>SelectedValueChanged</code> is fired as soon as a new selection is made from the list part of the ComboBox, and <code>SelectedItemChanged</code> is fired when the item is displayed in the TextBox portion of the ComboBox.</p> <p>In short, they both represent something in the list part of the ComboBox. So, when binding either property, the result is the same, since the <code>PropertyChanged</code> event is fired in either case. And since they both represent an element from the list, the they are probably treated the same.</p> <p>Does this help?</p> <p><strong>EDIT #1</strong></p> <p>Assuming that the list part of the ComboBox represents a property (as I can't confirm since I didn't write the control), binding either of <code>SelectedItem</code> or <code>SelectedValue</code> affects the same collection inside the control. Then, when this property is changed, the same occurs in the end. The <code>INotifyPropertryPropertyChanged.PropertyChanged</code> event is fired on the same property.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload