1

I tried something like this:

var attrs = typeof(System.Windows.Controls.ComboBox).GetCustomAttributes(typeof(System.Drawing.ToolboxBitmapAttribute), true);

...but attrs is empty collection. I also tried to look up for icons resources in assemblies and nothing found.

Win4ster
  • 896
  • 1
  • 8
  • 15

2 Answers2

0

That's because the ComboBox class is the actual run-time class, which has no such attributes. You'll need to find the design-time class. I've briefly looked through some of the WPF assemblies but couldn't find it.

ErikHeemskerk
  • 1,623
  • 14
  • 30
  • Hm, are you sure, what this design-time ComboBox class must exists? I tried to find such class among assemblies used by Visual Studio(running with active WPF designer), but nothing found. Also, Windows Forms controls have icons stored as resources in System.Windows.Forms.dll. But I didn't find similar resources in WPF assemblies. – Win4ster Jun 18 '10 at 09:34
0

I guess that most of the icons for WPF standard controls are included in the Visual Studio Image Library: https://msdn.microsoft.com/en-us/library/ms246582.aspx

adospace
  • 1,841
  • 1
  • 17
  • 15