We have quite a complex WPF application (that I cannot show here) that somehow has the tiled background misaligned of one of its user controls. I was unable to reproduce this problem in a "clean" WPF project but will try to illustrate the problem in this picture:
The gray area represents the user control and the black and red checks represents the tiled background inside the user control. The white background represents the window hosting the control. The VisualBrush
is used here but the same problem comes with the DrawingBrush
. I would prefer not to use the ImageBrush
.
Can you open a "clean" WPF project and build something that will cause a tiled background to be misaligned like this?