2
ListBox
オブジェクトが、私はKeyValuePairが参照型として使用することはできませんので、エラーを与えるKeyValuePair<string, string>
ListBoxで選択したアイテムをC#でKeyValuePair <string、string>として取得する方法は?
次のコードのような項目を選択し取得する必要がありますSelectionChangedイベントでBindingList<KeyValuePair<string, string>>
にバインドされます。
KeyValuePair<string, string> selectedProperty = listProperties.SelectedItem as KeyValuePair<string, string>;
これにはどのような回避策がありますか?
が魅力のように働きました。どうも。受け入れられた答えとしてマークします。 –