How to set a .PNG image as a TILED background image for my WPF Form?

后端 未结 2 951
星月不相逢
星月不相逢 2020-12-15 20:36

I\'m learning WPF on my own and I can\'t seem to find a way to make this work.

Here\'s my code:



        
2条回答
  •  执笔经年
    2020-12-15 21:03

    Set the ViewportUnits to absolute, which will allow you to define the pixel size of your image in the Viewport. In my example the image size is 32x32.

    
        
    
    

提交回复
热议问题