I'm writing a .NET AddIn that uses WPF for its user interface. Borrowing from the WPF examples delivered with the SDK, I am able to display a XPF form.
The example uses class WPFInteropHelper
. WPFInteropHelper.IconName
presumably does what it says on the tin, but I can't get it to work. In the absence of documentation, I've tried different approaches.
WPFInteropHelper.IconName
expects what:
- The name of an icon?
- The file title of an icon?
- The file path of an icon?
Should the icon be:
- A Windows
.bmp
- A Windows
.ico
- something else?
Does it look for the icon>
- In a resource in the same assembly
- In a file?
The example has this:
m_wndHelper.IconName = "DesignModel";
However, I can't see an icon name DesignModel in the app's resource.