XAML ComboBox SelectionChanged Fires OnLoad

Posted by griegs on Stack Overflow See other posts from Stack Overflow or by griegs
Published on 2010-05-04T00:17:22Z Indexed on 2010/05/04 0:48 UTC
Read the original article Hit count: 628

Filed under:
|

If I have a ComboBox that has a SelectionChanged event, it fires when I'm loading the control.

So at page load I set the SelectedValue and the SelectionChanged event fires which is not what I want to happen.

What is the accepted apporach to stopping this?

© Stack Overflow or respective owner

Related posts about xaml

Related posts about selectionchanged