There is a much better way to do this.
If you have a repeating background that is 1 pixel wide, do this:
<Image Source="<repeating image source>" HorizontalAlignment="Stretch" Height="<height of image>" Stretch="Fill"></Image>
It doesn't "repeat", but it fakes the computer into stretching 1 pixel into many.