C#のMEF(Managed Extensibility Framework)用にTutorialを使用していますが、リンクされている2つのコードラインのためにexaple-projectの作業ができません彼らはインターフェイスの大きな絵の下に見つけることができるチュートリアル):C#でのComboBoxのItemSourceとDisplayMemberPathの設定
cbTransformationOptions.ItemsSource = _tranformationEngine.Transformers;
cbTransformationOptions.DisplayMemberPath = "Name";
cbTransformationOptions
言及は普通のコンボボックスです。それまでは今、ある、これらのステートメントの両方が何とかWPF/XAMLにリンクされていることを(私はStackOverflowの上でいくつかの参照を見つけた私は考え出した何
'System.Windows.Forms.ComboBox' does not contain a definition for 'ItemsSource'
and no extension method 'ItemsSource' accepting a first argument of type
'System.Windows.Forms.ComboBox' could be found (are you missing a using directive
or an assembly reference?)
'System.Windows.Forms.ComboBox' does not contain a definition for 'DisplayMemberPath'
and no extension method 'DisplayMemberPath' accepting a first argument of type
'System.Windows.Forms.ComboBox' could be found (are you missing a using directive
or an assembly reference?)
:コードは、私は次のエラーを取得しています、コンパイルされません) - しかし、私はその話題に関する経験がないので、それらの答えは私を全く助けませんでした。
コードはどのように動作させるのですか?
ありがとうございます。コードを新しいwpfプロジェクトにコピーしました。 – DIF