开发者

Combobox selectedValue missing in result of XamlWriter.Save

开发者 https://www.devze.com 2023-04-13 01:57 出处:网络
Few day ago I started to play with dynamic Xaml. I have noticed that using XamlWriter.Save method to serialize Combobox causes absence of selectedValue in result string. Text of se开发者_运维技巧lecte

Few day ago I started to play with dynamic Xaml. I have noticed that using XamlWriter.Save method to serialize Combobox causes absence of selectedValue in result string. Text of se开发者_运维技巧lected element is in result but not the selectedValue. Does anyone have any idea how to save selectedValue so calling XamlReader.Parse(XamlWriter.Save(myComboBox)) won't loose SelectedValue.

My first thought was to implement some DependencyProperty ex. MySelectedValue.

If you suggest some other possibilities, I will be very grateful.


Is a property IsTextSearchEnabled set to true on the combobox? It could help to chose selected value from the text.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号