Problem
You wish to substitute the default image, for a business object, with a custom one of your own.
Solution
Create two images one 16X16, the other 32X32, name the smaller one with the name of your business object and the larger one with the name of your business object with “_Large” appended to it. In the module where you created your business object, create a folder named “Images”. Add both of your images to this folder and include them in the project. Set both the image’s “Build Action” properties to “Embedded Resource”. Next, open the model editor and navigate to Application –> BOModel –> <your BO name> and set the “ImageName” property to the name of your BO. Save the model. Run your application again and the default images in both the navbar and the icon for the the details view window will have been replaced.
Discussion
Although you can use any type of graphics file, the png format is best because of its support for the alpha channel. Also, if you use image sizes other than 16X16 and 32X32 the image will be resized for the details view window icon, but not for the navbar image. Further details can be found here.
Technorati tags:
XAF Cookbook