C# UWP how to get the value of changed ComboBoxItem

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

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

3条回答
  •  清歌不尽
    2021-01-23 08:47

    You can use the SelectedItem property of the combobox

    (CLengthCombo.SelectedItem as ComboBoxItem).Content
    

    https://msdn.microsoft.com/library/windows/apps/windows.ui.xaml.controls.combobox.aspx#properties

提交回复
热议问题