ABSF: Design-Time Neat and Tidy

Topics: Building and extending application blocks
Jun 6, 2007 at 6:46 PM
Hi, I am wondering if it is possible to add icons for the Enterprise Library Configuration UI when creating a custom application block. For example, an Icon for the Application Block and then additional icons for each provider type? TIA for any healp / direction.

Jun 6, 2007 at 8:00 PM
yup that can well be done.

Every application block (or provider, whatever) has an ConfigurationNode-class (or actually its own class that derives from ConfigurationNode).
These classes can be decorated with an Image-attribute in the following way:

MyApplicationBlockConfigNode: ConfigurationNode

then place a .bmp icon 16x16 (iirc) in the same project and precify it to be an embedded resource.
That should give you the icon in the configuration console's UI.

for examples you can look into Enterprise Libraries sources in the Block.Configuration.Design-projects.
Jun 7, 2007 at 11:10 AM
Ok, that worked great - thanks.

My next question is about the "ApplicationBlockSettingsNode" that gets listed when I create my provider through the UI - instead of "Dictionary Provider" (this happened to Tom in his video's as well) - I don't see any place to specify it differently in the resource files as he suggests in the video. Any insight?