Exposing Properties from a User Control
RandomImage User control always displays an image from the Images folder. It would be nice if you could specify the name of the folder that contains the images so that you could use different folder paths in different applications. You can do this by exposing a property from the
RandomImage User control.
RandomImage control in Listing 7.5, named
PropertyRandomImage, exposes a property named
After you expose a property in a User control, ...