What exactly are you trying to achieve you need to have some sort of fill mode be it scale, clip or repeat.
First you should just use a bitmapimage no need of a rect, and if you don't use at least clip then the image will appear outside the bounds of the container if it is larger than the container.
I can't write or add anything upon BitmapImage when layout is set to Horizontal(i must have that layout). I need exactly background-image for a container with no-repeat mode.
firstly your code as shown had nothing to do with layouts, second you can't exactly fill an area without scaling, an image can not miraculously change its size to match an area.
If you need to fill an area that has a layout but want the image at the back of it then you still dont draw in the rect. You need to either create a skin for your container that has the image behind the containers 'work' canvas or you need to layer the area yourself. LIke the structure below, that will achieve what you need to do.
<BitmapImage 100% height and width scaled/>
<Hgroup 100% height and width>
---------all you items on top of image go in here.
sorry wrong post
Message was edited by: JCVD-13