InitializeComponent() calling another method

后端 未结 2 1877
攒了一身酷
攒了一身酷 2021-01-21 15:54

When I added the SelectionChanged event and of course the method in the code to handle the event to the following combobox:

....



        
2条回答
  •  旧巷少年郎
    2021-01-21 16:44

    Put OrderBox.SelectionChanged+=OrderBox_OnSelectionChanged; in the MainWindow constructor and remove the SelectionChanged attribute in your xaml.

提交回复
热议问题