Proper use of PropertyChangedTrigger and ChangePropertyAction

后端 未结 3 716
一向
一向 2021-01-16 05:40

I\'m trying to set a default selected value when ItemsSource property changes on my ComboBox

My xaml :



        
3条回答
  •  不知归路
    2021-01-16 06:28

    Try setting property IsSynchronizedWithCurrentItem to true for your combobox and remove the trigger completely -

                 
    
    

提交回复
热议问题