Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

I can't add a gradient to this canvas control.

$
0
0

Sorry if this is in the wrong forum this is my first question. I'm currently going through the Head First C# book and I'm on the first chapter. I'm using the WPF version of the book which is free here: http://cdn.oreilly.com/oreilly/pdfs/hfcsharp3e_WPF_download.pdf

My problem arises when I get to the canvas control bit. I assumed I did the canvas resizing instructions but when the book asks me to fill the gradient for the canvas it doesn't show up? Not only that but the canvas looks stretched across the whole screen and I'm wondering whether that's how it's meant to be?

This is where I've set the gradient for the control and it's not showing up:

http://i62.tinypic.com/2wrovtl.png

Here I reset the layout of the canvas control as an experiment and weirdly the canvas showed up but I'm not sure whether it's meant to be that wide?

http://i62.tinypic.com/28003rr.png

tldr; why can't I add this gradient to this canvas control?

Sorry for the long question.




Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>