Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのようなことを試しました:
var attrs = typeof(System.Windows.Controls.ComboBox).GetCustomAttributes(typeof(System.Drawing.ToolboxBitmapAttribute), true);
...しかし、属性は空のコレクションです。また、アセンブリ内のアイコン リソースを検索しようとしましたが、何も見つかりませんでした。
これは、ComboBox クラスが実際のランタイム クラスであり、そのような属性を持たないためです。設計時クラスを見つける必要があります。いくつかの WPF アセンブリを簡単に調べましたが、見つかりませんでした。