Using the Event:
By SelectionChange event. The value selected by the event can be obtained. Timely access to the value of the state change. Bycomlevels.SelectedValue.ToString()
value obtained change. But this time there will beSystem.Windows.Controls.ComboBoxItem: text
a prefix, as the argument is not applicable. At this time, usingreplace
a function to replace the prefix. At this parameter will get what we want
C #, WPF-- get combobox option value
Guess you like
Origin blog.csdn.net/weixin_41851906/article/details/104033364
Recommended
Ranking