Using C#, how to set the Background image's TileMode and Stretch property?
StackPanel1.Background = new ImageBrush(new ....); // OK
StackPanel1.Background = Stretch.Uniform; //this doesn't work...
Using C#, how to set the Background image's TileMode and Stretch property?
StackPanel1.Background = new ImageBrush(new ....); // OK
StackPanel1.Background = Stretch.Uniform; //this doesn't work...
Need to set the property on the image brush itself.