This article is a mirror article of machine translation, please click here to jump to the original article.

View: 18769|Reply: 0

[WPF] WPF Knowledge Points - Gradient Colors (LinearGradientBrush, GradientStop)

[Copy link]
Posted on 12/21/2017 10:40:08 AM | | | |

[LinearGradientBrush -- Drawing Areas with Linear Gradient] (https://msdn.microsoft.com/zh-cn/library/system.windows.media.lineargradientbrush(v=vs.95).aspx)

Key attributes:

StartPoint to obtain or set the 2D start coordinates of a linear gradient.

EndPoint acquires or sets the 2D termination coordinates of a linear gradient.

[GradientStop- Describes the position and color of transition points in the gradient] (https://msdn.microsoft.com/zh-cn/library/system.windows.media.gradientstop(v=vs.95).aspx)

Key attributes:

Color Gets or sets the color of the gradient stop point.

Offset gets the position of the gradient stop point in the gradient vector. (General setting of visible area 0-1)

Rendering 1:


Rendering 2:






Previous:.gitignore is invalid after the change
Next:WPF DataGrid style sharing
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com