C# UWP how to get the value of changed ComboBoxItem

前端 未结 3 1462
独厮守ぢ
独厮守ぢ 2021-01-23 08:11

In my .xaml file I have my combo box as below:

3条回答
  •  借酒劲吻你
    2021-01-23 08:49

    Get your combobox to work this, c.(...) has SelectedItem, SelectedText ...:

    private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {
        var c = sender as ComboBox;
    
        var item = c.(...);
    }
    

提交回复
热议问题