View Single Post
  #1 (permalink)  
Old July 23rd, 2016, 11:13 AM
euriloco euriloco is offline
Registered User
Points: 17, Level: 1
Points: 17, Level: 1 Points: 17, Level: 1 Points: 17, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2016
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
Default Lesson 2 - Setting colors in WPF

I'm watching the video named "Setting colors in WPF".
The author says:
Quote:
"The StartPoint and the EndPoint give the coodinates on a 0 to 1 scale of the starting and the end of gradient.
0 means the gradient starts half way across the control horizontally and at the top vertically"
I draw the coordinate origin on a picture:

http://i67.tinypic.com/2e6akyf.jpg

He puts the StartPoint in the lower right corner so he changes it to (1,1) and the EndPoint to the upper left corner so he changes it to (0,0).
I don't understand these coordinates. I think they would be for the lower right corner (1,-1) and (-1,0) for the upper right corner.

Please, what am I doing wrong?

Thank you.

Last edited by euriloco; July 23rd, 2016 at 11:16 AM..
Reply With Quote