This project is read-only.
This project demonstrates how to use ImageBrush and BitmapImage to fill area of shapes like rectangle or ellipse with an image.


1. create an Uri pointing to an image
2. create a new instance of BitmapImage and assign your Uri to it
3. create a new instance of ImageBrush and assign your created BitmapImage to its ImageSource value
4. using .Fill method on your Rectangle control fill the entire rectangle with your ImageBrush.

Too see the working version of this project and also for details of above steps visit:

Last edited Sep 28, 2009 at 8:34 PM by d4moon, version 2